Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MY CS502 Mid paper 06 DEC 2010
#1
[FONT=&quot]CS502-Fundamentals Of Algorithms[/FONT]
[FONT=&quot]Fall 2010 Mid Paper 06, Dec 2010[/FONT]

[FONT=&quot]1. [/FONT]
[FONT=&quot]2. [/FONT][FONT=&quot]Random access machine or RAM is a/an[/FONT]
[FONT=&quot]3. [/FONT][FONT=&quot]An algorithm is a (n) *********_______________[/FONT]
[FONT=&quot]4. [/FONT][FONT=&quot]What type of instructions Random Access Machine (RAM) can execute? Choose best answer[/FONT]
[FONT=&quot]5. [/FONT][FONT=&quot]What is the asymptotic growth of [/FONT][FONT=&quot]?[/FONT]
[FONT=&quot]6. [/FONT][FONT=&quot]What is the asymptotic growth of [/FONT][FONT=&quot]?[/FONT]
7. A symptotic notation is used to calculate upper bound only.
[FONT=&quot]8. [/FONT][FONT=&quot]If an algorithm has a complexity of 5n[/FONT][FONT=&quot]+ log2[/FONT][FONT=&quot]( log2[/FONT][FONT=&quot]n[/FONT][FONT=&quot] )+ 10[/FONT][FONT=&quot] for some model of computation (some set of assumptions) and some complexity measures (such as number of comparison operations) we could say that it has complexity[/FONT]
[FONT=&quot]9. [/FONT][FONT=&quot]For the sieve technique we solve the problem[/FONT]
[FONT=&quot]10. [/FONT][FONT=&quot]What is the Heap – order property of max-heap?[/FONT]
[FONT=&quot]11. [/FONT][FONT=&quot]What is the total time to heapify?[/FONT]
[FONT=&quot]12. [/FONT][FONT=&quot]The running time of Quick sort depends on the partitioning of the sub-arrays; if they are unbalanced, then Quick sort can run as slowly as[/FONT]
[FONT=&quot]13. [/FONT][FONT=&quot]Counting sort assumes that the numbers to be sorted are in the range 1 to k, where k is[/FONT]
[FONT=&quot]14. [/FONT][FONT=&quot]Counting sort algorithm sorts in[/FONT]
[FONT=&quot]15. [/FONT][FONT=&quot]Dynamic programming algorithms need to store the results of intermediate sub-problems.[/FONT]
[FONT=&quot]16. [/FONT][FONT=&quot]Matrix multiplication is An associative but not commutative operation[/FONT]
[FONT=&quot]17. [/FONT][FONT=&quot]We can find the product A x B of matrices A and B, only if they are compatible which means,[/FONT]
[FONT=&quot]18. [/FONT][FONT=&quot]Matrix – Chain – Order is __________ than the exponential time method of enumerating all possible parenthesizations and checking each one.[/FONT]
[FONT=&quot]19. [/FONT][FONT=&quot]Consider the following Algorithm:[/FONT]
[FONT=&quot]Factorial (n){[/FONT]
[FONT=&quot]if (n=1)[/FONT]
[FONT=&quot]return 1[/FONT]
[FONT=&quot]else[/FONT]
[FONT=&quot]return (n * Factorial(n-1))[/FONT]


[FONT=&quot]20. [/FONT][FONT=&quot]The recurrence relation of Tower of Hanoi is given below [/FONT]

[FONT=&quot]21. [/FONT][FONT=&quot]In order to move a tower of 4 rings from one peg to another, how many ring moves are required?[/FONT]
[FONT=&quot]22. [/FONT][FONT=&quot]Time complexity of chain matrix multiplication is Θ (n3) and space complexity is[/FONT]
[FONT=&quot]23. [/FONT][FONT=&quot]How Plagiarism Detection can be done with edit distance?[/FONT]
A heap is a partially sorted binary tree. Although a heap is not completely in order, it conforms to a sorting principle: every node has a value less (for the sake of simplicity, we will assume that all orderings are from least to greatest) than either of its children.
Dynamic programming design involves 4 major steps:
· Develop a mathematical notation that can express any solution and subsolution for the problem at hand.
· Prove that the Principle of Optimality holds.
· Develop a recurrence relation that relates a solution to its subsolutions, using the math notation of step 1. Indicate what the initial values are for that recurrenec relation, and which term signifies the final solution.
· Write an algorithm to compute the recurrence relation.
[FONT=&quot]24. [/FONT][FONT=&quot]What is heap and what is heap order?[/FONT]
[FONT=&quot]Solve it,[/FONT]
[FONT=&quot][/FONT]
[FONT=&quot]25. [/FONT][FONT=&quot]What are Catalan numbers? Give the formula.[/FONT]
[FONT=&quot]26. [/FONT][FONT=&quot]We covered radix sort briefly in the lectures. Carry out radix sort on the following 3-digit numbers in order to sort them in ascending order.[/FONT]
114 243 563 871 334 442 765
[FONT=&quot]Show the result after the first pass.[/FONT]
27. [FONT=&quot]Write down the steps of dynamic programming strategy.[/FONT]



Images are not shown here. Please download the attachment


Attached Files
.doc   CS502- 06, DEC 2010 MID PAPER BY Shining Star.doc (Size: 34.5 KB / Downloads: 244)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Final Term Current Paper MKT501 Marketing Management 12 August 2010 viki 1 3,328 08-20-2020, 08:12 PM
Last Post: Johnnieaunders
  All Current Finalterm Papers Solved & Unsolved Held On 10 August 2010 viki 18 11,591 05-14-2012, 02:24 AM
Last Post: malik zani
  All Current Finalterm Papers Solved & Unsolved Held On 7 & 8 August 2010 viki 4 5,388 01-22-2012, 10:14 PM
Last Post: malika malik
  Final Term Current Paper CS101 Introduction to Computing 12 August 2010 viki 3 4,043 01-03-2012, 05:20 PM
Last Post: Muhammad Shahid hiraj
  Sta301 current paper 14 feb 2011 for fall 2010 Xpert 5 5,220 11-21-2011, 04:21 PM
Last Post: mahira
  Final Term Paper Current MTH101- Calculus And Analytical Geometry 10 August 2010 viki 6 6,308 11-03-2011, 10:59 PM
Last Post: rabeel
  mkt610 paper 18-7-2011 nisreenjodhpur 0 3,668 07-19-2011, 01:39 AM
Last Post: nisreenjodhpur
  Final Term Current CS401 Computer Architecture and Assembly Language 10 August 2010 viki 2 4,051 07-07-2011, 11:28 PM
Last Post: Xpert
  CS401 Final Paper kazim 1 3,127 06-09-2011, 02:47 AM
Last Post: sumaira kharal
  cs504 8 december fall 2010 Midterm paper Subjective Xpert 2 3,087 05-16-2011, 05:00 AM
Last Post: Xpert

Forum Jump:


Users browsing this thread: 1 Guest(s)