Question: write reply A sorted list is a collection of items where the elements of the list are properly arranged or placed in a specific order.
write reply "A sorted list is a collection of items where the elements of the list are properly arranged or placed in a specific order. The other could be ascending or descending, depending on the criteria necessary it could be a numerical or alphabetical order. On the other hand, an unsorted list lacks any specific order, its elements are arranged in the order they were inserted or random.
The difference is the order, while in a sorted list, elements are arranged in a specific, predefined order, unsorted lists have no defined order.
An example of where this can be used is in the search Algorithm; in a sorted list binary can be applied, reducing search time complexity from On to Olog n An unsorted list on the order hand can be used to gather a collection of random data, that does not require any specific positioning or data type."
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
