-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
94c125c
commit 9bc7840
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,35 @@ | ||
# algorithms-design-and-analysis-lab | ||
|
||
Lab work for course related to algorithms in 4th semester of B.Tech. - CSE in IIIT Vadodara. | ||
|
||
----- | ||
Lab 1 :- | ||
|
||
P1: To implement direct addressing. | ||
|
||
P2: To implement hashing with chaining. | ||
|
||
P3: To implement hashing using probing. | ||
|
||
P4: To implement | ||
a) queue using two stacks. | ||
b) stack using two queues. | ||
|
||
P5: | ||
a) Change the sequence of elements in a given queue/stack to any desired permutation using two additional queue/stack respectively. | ||
b) To sort elements of queue/stack using two additional queue/stack respectively. | ||
|
||
P6: To implement a list data structure which behaves as a queue if its size is less than 9 and as a stack otherwise. | ||
|
||
P7: Solving tower of hanoi. | ||
|
||
|
||
----- | ||
Lab 2 :- | ||
|
||
P3: | ||
a) To implement standard merge sort. | ||
b) To implement scan, divide into maximal monotonically increasing subarray, merge variant of merge sort. | ||
|
||
P5: To find rank of any element in O(log N) worst time: | ||
Given an array indexed 1 to n. Smallest element at index k. Subarrays 1:k-1 and k:n are monotonically increasing. |