Flag Top Engineering Colleges in India> software...
question mark

1) Define algorithm. What are its properties?2) Give atleast four real life examples where we use stack operations.3) Differentiate full and complete binary trees.4) What are the demerits of recursion?1. a) What are the characteristics of an algorithm? Describe with an example.b) Write an algorithm to implement any three operations of a queue.2. a) Describe the two methods of representing a graph.b) Design an algorithm to generate all prime numbers between 10 and 20.3. a) Trace out the algorithm Max Min on a data set containing atleast 8 elements.b) Design an algorithm to sort the elements using merge sort.4. What are preorder, Inorder, postorder traversals of a binary tree? Design recursion algorithms to implement them and explain with the help of an example.5. a) What is binary search? Develop a recursive algorithm for binary search.b) What are the two methods of representing a binary tree?6. a) Design an algorithm to check whether a given string is a palindrome or not.b) Trace out the algorithm quick sort on the data set {1, 5, 7, 19, 15, 8, 9, 10}.7. a) What is validation and testing of algorithms?b) Explain the terms with examplesi) Finite graphii) Isolated and pendent verticesiii) NULL graphiv) Path.8. Write short notes on:a) Debuggingb) The need for recursionc) Incidence matrix.

bhupinder singh , 12 Years ago
Grade
anser 1 Answers
Aman Bansal

Last Activity: 12 Years ago

Dear Bhupender,

Algoritham 

1, a step-by-step method of solving a problem or making decisions, as in making a diagnosis.
2. an established mechanical procedure for solving certain mathematical problems.

Properities of the algorithm 
) Finiteness: - an algorithm terminates after a finite numbers of steps. 

2) Definiteness: - each step in algorithm is unambiguous. This means that the action specified by the step cannot be interpreted (explain the meaning of) in multiple ways & can be performed without any confusion. 

3) Input:- an algorithm accepts zero or more inputs 

4) Output:- it produces at least one output. 

5) Effectiveness:- it consists of basic instructions that are realizable. This means that the instructions can be performed by using the given inputs in a finite amount of time.

Cracking IIT just got more exciting,It s not just all about getting assistance from IITians, alongside Target Achievement and Rewards play an important role. ASKIITIANS has it all for you, wherein you get assistance only from IITians for your preparation and win by answering queries in the discussion forums. Reward points 5 + 15 for all those who upload their pic and download the ASKIITIANS Toolbar, just a simple  to download the toolbar….

So start the brain storming…. become a leader with Elite Expert League ASKIITIANS

Thanks

Aman Bansal

Askiitian Expert


Provide a better Answer & Earn Cool Goodies

Enter text here...
star
LIVE ONLINE CLASSES

Prepraring for the competition made easy just by live online class.

tv

Full Live Access

material

Study Material

removal

Live Doubts Solving

assignment

Daily Class Assignments


Ask a Doubt

Get your questions answered by the expert for free

Enter text here...