You are on page 1of 1

FEBRUARY 24, 2017

ASSIGNMENT 1 LIST- ARRAY BASED


TOTAL MARKS: 20 | SUBMISSION DATE: 01-03-2017 | SUBMISSION TYPE: HANDWRITTEN

1. Write an insert algorithm for a list, which will add new data at a location that list
remains sorted. Inputs are array, array size K, and number. [1D Array] _____/ 06

2. Write an algorithm to multiply 2 matrices (2d arrays). Dimensions must be


compatible for multiplication. [2D Arrays] _____/ 06

3. Write an algorithm to merge two sorted lists into one sorted list. Both lists are
sorted in ascending order. And third list will also be sorted in same order. [1 D
Array] _____/ 08
Note: Remember you will not run any sorting algorithm to sort. Your insertions will
make the list sorted. Third list is merger of these two list into one by rearranging
pointers.

TO BE FILLED BY STUDENT

Class: ________________

Registration #: ________________________

Name: _____________________________

Submission Date: __________________

TO BE FILLED BY TEACHER

Obtained Marks: ________ / 20

You might also like