Problem 1: Suppose you have n two-digit numbers. For example, if n = 5, you may have the following 5 two-digits number: 24 11 57 17 46 Your goal is to arrange your list in ascending order. So, for the example above, CPS188 > Lab 02 > Computation and Introduction to C your final answer would be: 11 17 24 46 57 Think of a procedure to perform this task (your list can have repeated numbers). Test your idea with different values of n. Once you have decided how it can be done, write your solution as a sequence of steps that can be followed in order. How have you ensured that t your algorithm eventually stops? Have you tested your algorithm on unusual data (like numbers that are all the same, or that are already sorted)? Number each step of your algorithm and explain briefly what its role is in achieving your goal. Pick a list of numbers of your choice and show by hand how your algorithm will achieve the sorting required.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

Please provide an algorithm for problem 1, no need to write a code, just a sequence of steps to follow, thank you.

Problem 1: Suppose you have n two-digit numbers. For example, if n = 5, you
may have the following 5 two-digits number: 24 11 57 17 46
Your goal is to arrange your list in ascending order. So, for the example above,
CPS188 > Lab 02 > Computation and Introduction to C
your final answer would be: 11 17 24 46 57
Think of a procedure to perform this task (your list can have repeated numbers).
Test your idea with different values of n. Once you have decided how it can be
done, write your solution as a sequence of steps that can be followed in order.
How have you ensured that your algorithm eventually stops? Have you tested
your algorithm on unusual data (like numbers that are all the same, or that are
already sorted)? Number each step of your algorithm and explain briefly what its
role is in achieving your goal. Pick a list of numbers of your choice and show by
hand how your algorithm will achieve the sorting required.
Transcribed Image Text:Problem 1: Suppose you have n two-digit numbers. For example, if n = 5, you may have the following 5 two-digits number: 24 11 57 17 46 Your goal is to arrange your list in ascending order. So, for the example above, CPS188 > Lab 02 > Computation and Introduction to C your final answer would be: 11 17 24 46 57 Think of a procedure to perform this task (your list can have repeated numbers). Test your idea with different values of n. Once you have decided how it can be done, write your solution as a sequence of steps that can be followed in order. How have you ensured that your algorithm eventually stops? Have you tested your algorithm on unusual data (like numbers that are all the same, or that are already sorted)? Number each step of your algorithm and explain briefly what its role is in achieving your goal. Pick a list of numbers of your choice and show by hand how your algorithm will achieve the sorting required.
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Lower bounds sorting algorithm
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education