Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use bubble sort to sort the following list of numbers (similar to slide 41 of lesson 11). Show all steps. 34 45 3 9 2

  1. Use bubble sort to sort the following list of numbers (similar to slide 41 of lesson 11). Show all steps.

34 45 3 9 2

  1. Use selection sort to sort the above list of numbers (similar to slide 43 of lesson 11). Show all steps.
  2. Using the stack code on slides 15 and 16 of lesson 11, write a small program that uses the stack to reverse the letters in the string question3. Print out the string both before and after the letters are Although it would be desirable to try this using Eclipse, simply writing the program is sufficient for this question.
  3. Using the queue code on slides 26 to 28 of lesson 11. write a small program that uses the queue to buffer the letters in the string question4. Print out the string both before and after the letters are entered into the Although it would be desirable to try this using Eclipse, simply writing the program is sufficient for this question.
  4. In your own words, what is a linked list? In C++, what is an object? How are linked lists and objects related?
  5. Write iterative and recursive C++ programs that determine the factorial of an input number n. For example, the factorial of 4 is 4*3*2*1 = 24. What is the complexity in big O notation for your programs? Although it would be desirable to try this using Eclipse, simply writing the programs is sufficient for this question.
  6. Insert the following numbers (4, 18) into the heap shown at the top of slide 18 of lesson 12. Show all steps.
  7. After completing question 7, delete the value 35 from the heap. Show all steps.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro SQL Server Wait Statistics

Authors: Enrico Van De Laar

1st Edition

1484211391, 9781484211397

More Books

Students also viewed these Databases questions

Question

Discuss what makes an MS Project schedule useful and tell why.

Answered: 1 week ago