NPTEL Online Course Week 5 Solution Implement a Matrix ADT

NPTEL Online Course Week 5 Solution Implement a Matrix ADT Assignment
You have to implement a matrix ADT using concepts of C++ classes taught in the lectures. The input matrices would be square matrices. Theclass must support the following functions:

1. Matrix Addition
2. Matrix Subtraction
3. Matrix Multiplication

NPTEL Online Course Week 5 Big Int Addition

NPTEL Online Course Week 5 Big Int Addition Assignment

Primitive int data type handles integers each of which can be stored using 32 bits. Similarly long data type also has a limit. In this assignment you have to implement a data type which handles numbers larger than int , long and long long.

You are given a number in decimal form. You need to build a data structure called BigInt which can store that data, and perform the following basic operations on that data type:

NPTEL Online Course Week 5 Solution Implementing a Hash Table ADT

NPTEL Online Course Week 5 Solution Implementing a Hash Table ADT Assignment
A hash table is a data structure that maps a set of keys to a given set of values. It uses a hash function to compute an index into an array of buckets or slots, from which the correct value can be found or to which a correct value can be inserted. A hash function will assign each key to a unique bucket or slot. In practice, however, there may be more than one key that will hash to the same bucket. Such an assignment is said to result in a collision.

NPTEL Week 5: Basic Data Structures and Lists Solutions


Solution of Week 5
 Basic Data Structures and Lists NPTEL Online Course
1. Assume that the structure of a Linked List node is as follows:
 struct node{
     int data;
     struct node *next;
 };
 What does the following function print for a given Linked List which has elements in the order 1->2->3->4->5->6. 

Share