Instructions: All Questions Are Compulsory

Instructions: All Questions Are Compulsory

<p> ACAD-R-23 SHRI RAMDEOBABA COLLEGE OF ENGINEERING AND MANAGEMENT Rev:00 Department VI SEMESTER B.E.[ COMPUTER SCIENCE & ENGGI.] Page:01 COMPUTER SCIENCE & SUBJECT: DESIGN & ANALYSIS OF ALGORITHMS ENGINEERING CLASS TEST 1 – EXAMINATION (2014-15) Date: 19-01-2015</p><p>MAX MARKS: 15 TIME: 1 hrs (12:30 pm onwards) Instructions: All Questions are compulsory Q.1) An application involves generating shortest path from one source to all possible destination. Design following to find solution for six different cities. (Assume suitable data) i. Suitable data structure and distance values to generate input for application ii. Design intermediate distance array and parent array for path generation. iii. Write algorithm iv. Generate output and suitable data structure for storing output. v. Comment on complexity of design. (05) [CO1,CO4,CO6]</p><p>OR</p><p>Q.2) A cable is to be laid for signal transmission across the network consisting of nodes and connectivity as shown in the graph. Design following for solution. (No cycle is permitted) i. Suitable data structure for storing the distance information ii. Intermediate data structures for designing solution. iii. Write algorithm (any method). iv. What is Steiner point and its advantage. v. Comment on complexity of design (05) [CO1,CO4,CO6] (Refer Graph Fig.1)</p><p>Q.3) On following array -25 20 35 45 65 76 85 98 105 135 i. Find out comparison required for successful and unsuccessful search operation. ii. Compute average time required for successful and unsuccessful search. iii. Find the relationship between the average number of search operation for successful and unsuccessful search. iv. Find relationship between EPL and IPL. v. Explain the difference between binary and ternary search. (05) [CO3, CO5]</p><p>OR</p><p>Q.4) Write Quick sort algorithm. Derive the complexity equation of quick sort in best, average and worst case. What is significance of balanced and unbalanced partition in quick sort. Write example arrays for which worst case complexity will be generated. Write any two difference between quick and merge sort. (05) [CO3,CO5]</p><p>Q.5) Explain the procedure of converting large text or image into single string. Assume to input strings as: E X P O N E N T I A L and P O L Y N O M I A L Find the LCS between two strings, write algorithm for LCS and printing LCS Apart from LCS, derive any one sequence. (05) [CO6]</p><p>OR</p><p>Q.6) Write an algorithm for multi-stage graph. Implement multi-stage graph algorithm on following graph and find shortest path. Find the path matrix. Give any one application of algorithm. Comment on complexity. (05) [CO6]</p><p>Figure 1: For Q.2 Figure 2: For Q.6</p>

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    1 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us