Joystar77
- 122
- 0
How many vcomparisons did you actually need?
The discussion revolves around the concept of "vcomparisons" in the context of discrete mathematics, particularly in relation to sorting algorithms like Bubble Sort. Participants explore how many vcomparisons are needed for a specific list of numbers and the maximum number of comparisons required for a list of six numbers. The conversation includes questions about definitions, algorithm behavior, and specific assignment questions.
Participants express uncertainty about the term "vcomparisons" and whether it is appropriate in this context. There is no consensus on the exact number of vcomparisons needed or the maximum number of comparisons for the list of six numbers, as different interpretations and clarifications are offered.
Participants note that the understanding of vcomparisons is dependent on the specific sorting algorithm being discussed, and there are unresolved questions about the definitions and implications of the term within the context of the assignment.
n. (Smile)Joystar1977 said:How many vcomparisons did you actually need?
Do you need to sort this sequence? You still have not said what v-comparisons are.Joystar1977 said:I will rephrase the question Evgeny. Makarov. When having the following numbers: 7, 12, 5, 22, 13, and 32 how many vcomparisons did I actually need?
I believe this question is being discussed in https://driven2services.com/staging/mh/index.php?threads/5719/.Joystar1977 said:Another question I have when having the following numbers: 7, 12, 5, 22, 13, and 32 what is the maximum number of comparisons required for a list of 6 numbers?
The maximum number of comparisons required for a list of 6 numbers would be 5 comparisons. If this is not correct, then can you please explain this to me?
Evgeny.Makarov said:Do you need to sort this sequence? You still have not said what v-comparisons are.
As a general advice, you should ask questions in such a way that individual threads are self-contained. One thread should not require a context from a different thread. If you do rely on another thread, you should post a link there. Even if two threads were asked at the same time, after several replies they may be separated by other threads in the list of recent posts, so it is is no longer obvious that they may be related. Also, different threads may be read by different people. I believe this is a rule not just on this forum.
I believe this question is being discussed in https://driven2services.com/staging/mh/index.php?threads/5719/.
This may be a typo. The question may ask for the actual number of comparisons for this concrete list as opposed to the the maximum number of comparisons over all lists of 6 numbers.Joystar1977 said:d. What is the maximum number of comparisons required for a list of 6 numbers?
e. How many vcomparisons did I actually need?