Write down the pseudo code for selection sort algorithm

Assignment Help Data Structure & Algorithms
Reference no: EM131066716

Task 1

Question 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

Question 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.

Question 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.

Question 4. Following data is inserted to a binary tree. Draw the binary tree after inserting data and explain the inserting methodology.

B) Print the data that you have inserted in part (A) in the following

1. Inorder

2. Preorder

3. 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 2

Question 1. Design the algorithms that required in above scenario.

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

Question 3. Provide evidence and solutions for error handling during software implementation
What is error handling?

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

Task 3

Question 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.

Code implementation using java

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

Question 3. Identify different methods to reverse a String. Explain all the identified methods. (Note: student should explain at least two different methods and student can use any data structure to reverse a String value)

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

Reference no: EM131066716

Questions Cloud

Briefly define general and special revelation : Read the story of the raising of Lazarus in John 11. What can we learn about Jesus and death from this account of the event? Read the 11 reasons for suffering listed in the lecture. Which reason(s) might provide good cause for a Christian to "coun..
How many boxes of lettuce should the supermarket purchase : How many boxes of lettuce should the supermarket purchase tomorrow?
Descriptive paragraph using sensory details : For the practice assignment, students will write one descriptive paragraph using sensory details. To start, students should identify an object or place with which they are familiar, for example, a bird, a flower, a tree, a park, or one's backyard..
Wage of employees of a certain company : The average hourly wage of employees of a certain company is $10.87. Assume the variable is normally distributed. If the standard deviation is $4.31, find the probability that a randomly selected employee earns less than $9.36.
Write down the pseudo code for selection sort algorithm : 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
Picking out three names randomly : Select three students from a class to receive ice cream by putting all the students' names in a hat ad picking out three names randomly. Is it a observational study, sample survey or an experiment ? Why?
How does distinguish technical writing from business writing : How does Locker distinguish technical writing from business writing? Write a couple of sentences or so in your response to this question.
Find the volume of the solid in the first octant bounded : find the volume of the solid in the first octant bounded
Standard deviation of the binomial distribution : Suppose we are flipping a fair coin (i.e., probability of heads = 0.5 and probability of tails = 0.5). Further, suppose we consider the result of heads to be a success. What is the standard deviation of the binomial distribution if we flip the coin..

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Explain the benefits and limitations of developing software

You will be asked to demonstrate how your algorithm works and explain the benefits and limitations of developing software solutions to common problems such as that in the scenario.

  What is the worst case of avl tree?

the binary tree can look like a linked list in the worst case. What is the worst case of AVL tree? To get an idea, do the following: What is the minimum # of nodes in each of the AVL trees with heights 2, 3, 4, and 5?Explain please.

  Algorithm-decide whether language recognized by dfa is empty

Give an algorithm to decide whether the language recognized by a DFA is empty. Given two DFAs M1 and M2, give an algorithm to decide whether L(M1)subset or equal to L(M2).

  Devise a linear-time algorithm to count the parallel edges

Devise a linear-time algorithm to count the parallel edges in a graph. Write the algorithm in pseudocode.

  Prepare a report about leased circuits

COMP6011 Data Communications -  Prepare a report about Leased circuits

  Section 1 aims objectives and possible outcomesprovide

section 1 aims objectives and possible outcomes.provide a clear statement of the aims and objectives of the data

  Analyze the common threats to data systems

Analyze the common threats to data systems such as Web applications and data servers. Next, speculate on the greatest area of vulnerability and potential for damage and / or data loss of such data systems (e.g., SQL injection, Web-based password c..

  Determine the impedances of elements in laplace domain

Redraw the schematics with the impedance of each of the element shown in Laplace domain. Then determine the overall impedance of the entire circuit between the two ends of the shown circuit and express it in Laplace domain as a ratio of two polyno..

  Explain in words a divide-and- conquer algorithm

explain in words a divide-and- conquer algorithm that runs in O(log n) time, and that determines if there is an i for which a[i] = i. Argue that your algorithm is correct and provide supporting pseudo-cod

  Create two function for converting between units of distance

It's often necessary to convert between units. In this exercise, you will create two functions for converting between units of distance. The first function will be called ConvertMilesToKilometers(), which will accept one parameter for the number o..

  Display all columns and all rows from the employees table.

Write SELECT statements for the following questions. Make sure to include the statement execution, including the resulting data.

  Write program to sort list of numbers using quick-sort algo

Write a program to sort the list of numbers 16, 38, 54, 80, 22, 65, 55, 48, 64, 95, 5, 100, 58, 25, 36 using quick-sort algorithm. Explain sorting the list using algorithm steps neatly.

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