Task 0111 write down the pseudo code for merge sort

Assignment Help Data Structure & Algorithms
Reference no: EM13347461

Task 01

1.1 Write down the pseudo code for merge sort algorithm and using bellow array values perform the merge sort algorithm. Provide all the steps and describe them.

8

2

9

7

3

10

2

5

1.2 Write down the pseudo code for selection sort algorithm and using bellow array values perform the selection sort algorithm. Provide all the steps and describe them.

28

28

75

93

12

8

55

71

34

47

83

1.3 Consider the values for the array L = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20} and Implement a binary search on an ordered array. Compare the number of key comparisons and write down all the necessary steps to search values 3, 18 and 1 using binary search.

1.4 A) Following data is inserted to a binary tree. Draw the binary tree after inserting data and explain the inserting methodology.

77

94

41

112

155

21

56

99

47

83

B) Print the data that you have inserted in part (A) in the following strategies.
I. Inorder
II. Preorder
III. Postorder

C) What are the facts you should take into consideration when deleting a node from a binary tree. Explain clearly for different situations with examples.

Task 02

You are required to write a menu driven program which will maintain a list of car models, their price, name of the manufacturer, engine capacity etc., as a doubly linked list. The menu should make provisions for inserting information pertaining to new car models, delete obsolete (outdated) models, and update data such as price besides answering queries such as listing all car models within a price range specified by the user and listing all details given a car model.

2.1 Design the algorithms that required in above scenario.

2.2 Implement the above programme with the required algorithms by using an executable programming language (Java/C++).

2.3 Provide evidence and solutions for error handling during software implementation

2.4 Carry out testing on implemented solution and provide evidence by including suitable screenshots.

Task 03

3.1 Identify a method to count and record the number of occurrences of each vowel in uppercase or lowercase in any given paragraph. Explain it.

3.2 Implement an algorithm to achieve above explained method using suitable programming language. Paragraph is given bellow.

A data structure is an arrangement of data in a computer's memory or even disk storage. An example of several common data structures are Arrays, Linked Lists, Queues, Stacks, Binary Trees, and Hash Tables. Algorithms, on the other hand, are used to manipulate the data contained in these data structures as in searching and sorting.

Output must print the following lines, inserting the number of appearances of the vowel in lowercases and uppercases, and the total appearances.

A: __ Lowercase , __ Uppercase , __ Total
E: __ Lowercase , __ Uppercase , __ Total
I : __ Lowercase , __ Uppercase , __ Total
O: __ Lowercase , __ Uppercase , __ Total
U: __ Lowercase , __ Uppercase , __ Total

3.3 Identify different methods to reverse a String. Explain all the identified methods.

3.4 Implement a method to reverse any String Value by using String operations and String manipulation.

Reference no: EM13347461

Questions Cloud

Part 1 theory and business1identify computing devices which : part 1 theory and business1.identify computing devices which could be used to support your improved process.2.identify
Part-a1 explain the various challenges faced by present day : part-a1. explain the various challenges faced by present day human resource development in organizations.what are the
Te 2011 balance sheet of the captain jet inc is attached : the 2011 balance sheet of the captain jet inc. is attached. during 2012 the following events occurred.1. on january 10
Question 1 evaluate the mu of x nbspin the following : question 1 evaluate the mu of x nbspin the following utility functions at x10nbspquestion 2.suppose you obtain utility
Task 0111 write down the pseudo code for merge sort : task 011.1 write down the pseudo code for merge sort algorithm and using bellow array values perform the merge sort
Question 1 oab is an isosceles triangle with oa ob and m : question 1. oab is an isosceles triangle with oa ob and m is the mid-point of ab. let oa a and let ob b.a write the
Assignment covers the subsequent eight topics and explore : assignment covers the subsequent eight topics and explore the implementation of memory management processes and
Ultramarine ultramarine is a deep blue color and a pigment : ultramarine ultramarine is a deep blue color and a pigment which was originally made by grinding lapis lazuli into a
Odds ratio odds ratio or is sometimes reported instead of : odds ratio odds ratio or is sometimes reported instead of relative risk. this normally gives the odds or likelihood of

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Question about trigger

What are triggers used for, and why are they important in database systems? Give an example of a situation where a trigger would be appropriate.

  Using pseudocode, design an algorithm

BuzzButtons is a novelty item company manufacturing personalized lapel buttons. The owner is promoting his buttons by offering them at 99 cents each. He wants you to design a program asking the user for his or her name for the button, an e-mail addre..

  Design a method from stack class to reverse the order

Design a method from "Stack" Class to reverse the order of members in a stack. (Stack Order: From 1234 to 4321). No array. (allowed example : push,pop). File Name : Stack.

  Calculate shortest path-djkstra-s shortest path algorithm

With indicated link costs, use Djkstra's shortest path algorithm to calculate shortest path from E to all network nodes. Illustrate how algorithm works by computing table.

  Definition of a method isreverse

Provide the definition of a method, isReverse , whose two parameters are arrays of integers of equal size. The technique returns true if and only if one array is reverse of the other.

  Efficient algorithm that achieves goal using base station

So that every house is within four miles of one of the base stations. Write efficient algorithm that achieves this goal, using as few base stations as possible.

  Designing an algorithm for task-array of person numbers

You have been allotted task of designing an algorithm for following task. Someone has built the array of person numbers of all n students enrolled in 331 this fall.

  Algorithm to read arbitrary number of data records

Write the algorithm to read arbitrary number of data records, each comprising name, age, and code.

  Graph algorithm.

Graph algorithm. a. Draw a depth-first search tree based on a given graph. Assume that adjacent vertices are visited in alphabetical order. Then compute the Num and Low values for each vertex, and find out the articulation points i

  Steps of asymmetric encryption algorithms to read message

Using only asymmetric encryption algorithms write down any steps taken by Bob which permit him to read the message.

  Enter the last names of five candidates

Write a program that allows the user to enter the last names of five candidates in a local election and the votes received by each candidate. The program should then ouput each candidate's name, votes received by that candidate.

  Finding the values of queuefront and queuerear

Assume that queue is a queue type object and the size of the array-implementing queue is 100. Also, assume that the value of the queueFront is 25 and the value of queueRear is twenty-five.

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