CLICK HERE TO DOWNLOAD ASSIGNMENTS
https://drive.google.com/open?id=0B9zJxhTsrja5cDd4WFV4Q2VpZUE
________________________________________________________________________________
 
GROUP B
 
https://drive.google.com/open?id=0B9zJxhTsrja5cDd4WFV4Q2VpZUE
________________________________________________________________________________
Suggested List of
  Laboratory Assignments  
 | 
 |
Write C++/Java program for
  following-  
 | 
 |
Group A  
 | 
 |
1.  
 | 
  
A book consists of chapters,
  chapters consist of sections and sections consist of subsections. Construct a
  tree and print the nodes. Find the time and space requirements of your
  method.  
 | 
 
2  
 | 
  
Beginning with an empty
  binary search tree, Construct binary search tree by inserting the values in
  the order given. After constructing a binary tree -  
i. Insert new node  
ii. Find number of nodes in
  longest path  
iii. Minimum data value found
  in the tree  
iv. Change a tree so that the
  roles of the left and right pointers are swapped at every node  
v. Search a value  
 | 
 
3  
 | 
  
For given expression eg.
  a-b*c-d/e+f construct inorder sequence and traverse it using postorder traversal(non
  recursive).  
 | 
 
4  
 | 
  
Read for the formulas in
  propositional calculus. Write a function that reads such a formula and
  creates its binary tree representation. What is the complexity of your
  function?  
 | 
 
5  
 | 
  
Given binary tree with n
  nodes, assign this tree to another [operator=] and then erase all nodes in a
  binary tree.  
 | 
 
6  
 | 
  
Convert given binary tree
  into threaded binary tree. Analyze time and space complexity of the
  algorithm.  
 | 
 
7  
 | 
  
Consider threading a binary
  tree using preorder threads rather than inorder threads. Design an algorithm
  for traversal without using stack and analyze its complexity.  
 | 
 
8  
 | 
  
A Dictionary stores keywords
  & its meanings. Provide facility for adding new keywords, deleting
  keywords, updating values of any entry. Provide facility to display whole
  data sorted in ascending/ Descending order. Also find how many maximum
  comparisons may require for finding any keyword. Use Binary Search Tree for
  implementation.  
 | 
 
GROUP B
 9  
 | 
  
Write a function to get the
  number of vertices in an undirected graph and its edges. You may assume that
  no edge is input twice.  
i. Use adjacency list
  representation of the graph and find runtime of the function  
ii. Use adjacency matrix
  representation of the graph and find runtime of the function  
 | 
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
10  
 | 
  
There are flight paths
  between cities. If there is a flight between city A and city B then there is
  an edge between the cities. The cost of the edge can be the time that flight
  takes to reach city B from A, or the amount of fuel used for the journey.
  Represent this as a graph. The node can be represented by airport name or
  name of the city. Use adjacency list representation of the graph or use
  adjacency matrix representation of the graph. Justify the storage
  representation used.  
 | 
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
11  
 | 
  
You have a business with
  several offices; you want to lease phone lines to connect them up with each
  other; and the phone company charges different amounts of money to connect
  different pairs of cities. You want a set of lines that connects all your
  offices with a minimum total cost. Solve the problem by suggesting
  appropriate data structures.  
 | 
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
12  
 | 
  
Tour operator organizes
  guided bus trips across the Maharashtra. Tourists may have different
  preferences. Tour operator offers a choice from many different routes. Every
  day the bus moves from starting city S to another city F as chosen by client.
  On this way, the tourists can see the sights alongside the route travelled
  from S to F. Client may have preference to choose route. There is a
  restriction on the routes that the tourists may choose from, the bus has to
  take a short route from S to F or a route having one distance unit longer
  than the minimal distance. Two routes from S to F are considered different if
  there is at least one road from a city A to a city B which is part of one
  route, but not of the other route.  
 | 
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 13  
 | 
  
Consider the scheduling
  problem. n tasks to be scheduled on single processor. Let t1, ..., tn be
  durations required to execute on single processor is known. The tasks can be
  executed in any order but one task at a time. Design a greedy algorithm for
  this problem and find a schedule that minimizes the total time spent by all
  the tasks in the system. (The time spent by one is the sum of the waiting
  time of task and the time spent on its execution.)  
  | 
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1 comment:
Drive link not working
Post a Comment