Data structures and algorithms

Assignment Help Data Structure & Algorithms
Reference no: EM131392

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: EM131392

Questions Cloud

Identified systems and elements of the sap system : Identify computing devices, which could be used to support Your Improved Process
Human resource development in organizations : Explain the various challenges faced by present day Human Resource Development in organizations.
Balance sheet of the captain jet inc : Balance sheet of the Captain Jet Inc
Evaluate the mu in the utility functions : Evaluate the MU in the utility functions
Data structures and algorithms : Provides learners with an understanding of how data structures are used in algorithms and enables them to design and implement data structures
Two-dimensional cartesian coordinate system : Vectors as linear combinations of the vectors
Implementation of memory management : Implementation of memory management
Ultramarine composition : Sodium Bisulfite UseThe non-shrinking, non-warping nature of ultramarine blue, along with its exceptional heat and light stability has led to the development of a range of high quality ultramarine blue pigments specifically for masterbatchs applicati..
Study design : What level of evidence does this study design represent?

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

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