Design an algorithm to sort the elements using merge sort

Assignment Help Data Structure & Algorithms
Reference no: EM13338938

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 examples

i) Finite graph

ii) Isolated and pendent vertices

iii) NULL graph

iv) Path.

8. Write short notes on :

a) Debugging

b) The need for recursion

c) Incidence matrix.

Reference no: EM13338938

Questions Cloud

How far should you go to reach the treasure in paces : You might think that it is never a good approximation to ignore air resistance. However, often it is. How far should you go to reach the treasure in paces
Estimate the acceleration of the blocks : A block of mass m1 = 21.5kg and a block of mass m2 = 5.50kg are connected by a massless string over a pulley in the shape of a solid disk having radius R = .250m, Determine the acceleration of the blocks
What is the linear data structure : what is the linear data structure ? Give example .Describe how an array is represented.
Find his terminal speed if he falls feet first : A 81.0 skydiver can be modeled as a rectangular "box" with dimensions 18.0x 44.0 x 185. What is his terminal speed if he falls feet first
Design an algorithm to sort the elements using merge sort : What are preorder, Inorder, postorder traversals of a binary tree? Design recursion algorithms to implement them and explain with the help of an example.
What could encourage or force companies to change to ipv6 : What could encourage or force companies to change to IPv6?
Definiteness is one of the properties of an algorithm : Using suitable word or phrase fill up the blanks in the following sentences.
How much out-of-pocket payment will mr smith be responsible : How much will Medicare pay Dr. Johnson if Dr. Johnson is a Medicare participating physician? How much out-of-pocket payment will Mr. Smith be responsible for?
What are the properties of an algorithm : What is a first-in-first-out data structure ? Write algorithms to perform the following operations on it - create, insertion, deletion, for testing overflow and empty conditions.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement algorithm for evaluation of arithmetic expression

Implement the following algorithm for the evaluation of arithmetic expressions. Each operator has a precedence. The + and - operators have the lowest precedence.

  Neural and tree learning on continuous attributes

Compare and contrast the methods of learning these numbers in the two models.

  Question about database administration

Should the data administrator really be on the same level as the DBA, generally somewhat low in corporate hierarchy or should this person have an elevated level of importance?

  Conduct time complexity analysis of the algorithm

Hand test your algorithm using your allocated 10-element long list of alphabetic charactersas an illustrative/working example (see the Data Set below),

  What is the new time complexity in the array

What is the time complexity of running the below bubblesort on an array of random integers?

  Creating java programming scripts

Discuss how does a programmer typically get access to a Graphics object when coding an applet?

  The binary search algorithm

- The "origin" of the Cartsian plane in math is the point where x and y are both zero. Declare a variable of type POINT named origin and set its data dields consistent with the mathematical notion of "origin".

  Create efficient algorithm to find path in graph

Given connected undirected graph G described by the adjacency list representation create the efficient algorithm to find the path in G which goes through exactly once in each direction.

  Describe why algorithm runs in linear time-adjacency matrix

Rreached from every other vertex. Describe why your algorithm runs in linear time (O(V2) on an adjacency matrix; O(E+V) on an adjacency list).

  The radix sort algorithm

Show what happens to the radix sort algorithm if the counting sort is not a stable sorting algorithm. Bring a counter example

  Write efficient pseudocode algorithm to determine record

Write the most efficient pseudocode algorithm you can to determine the record with specific customerID if every single customer ID from 101 to 500 is used and array has 400 elements.

  Process of insertion into a heap-implemented priority queue

Explain the process of insertion into a heap-implemented priority queue, and informally explain its complexity and the process of removal from a heap-implemented priority queue, and informally explain its complexity.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd