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

  Advanced systems analysis and designtasks 1 - produce a

advanced systems analysis and designtasks 1 - produce a system specification indicating functional and non-functional

  What is the machine run time in second for sorting array

Write computer program to implement this algorithm and demonstrate the results and what is the machine run time in second for sorting array A

  Description of the steps of the algorithm and justify it

Design an algorithm that solves the above problem using a mandatory heap and has time complexity O(m + k*lg(m)) and space complexity O(m).

  Find minimum number of storage required for bfs and dfs

Assume we have problem space where there is uniform branching factor b and there is single goal node at depth m. Determine the minimum number of nodes expanded and storage required for BFS and DFS?

  Chinese remainder theory

For RSA signature, let p=17 and q=43. Design a digital signature for the message m=161, where the hashing function is the identity function and the computation at the signer's side is performed through the Chinese Remainder Theory.

  Identify data structures to organize typical file cabinet

Identify at least two data structures that are used to organize a typical file cabinet. Why do you feel it is necessary to emulate these types of data structures in a computer program?

  Question 1 consider we implement a priority queue as a heap

question 1 consider we implement a priority queue as a heap. suppose the queue has thousands of elements. consider

  Insert a clipart image to the right of the table.

Insert the following table into Sheet1 of an Excel spreadsheet, keeping the cell references consistent

  Returns true if a string contains properly nested

Give an algorithm that returns true if a string contains properly nested and balanced parentheses, and false if otherwise. Hint: At no time while scanning a legal string from left to right will you have encountered more right parentheses than left..

  Implement and test a generic binary search

Implement and test a generic binary search. Note that your test program must use at least 2 types of data to prove that bsearch is generic

  Create all the possible combinations of array a

The subset-sum problem is defined as follows: given a set B of n positive integers and an integer K, can you find a subset of B whose elements' summation is equal to K? Design an algorithm to solve this problem. Address its correctness and running..

  Determining entropy of encrypted message

If this message is encrypted with DES by using a random 56-bit key, determine encrypted message's entropy?

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