Respuesta :

how many comparisons are needed to merge two ordered lists

[2, 9, 12, 17, 20] and [1, 4, 5, 6, 7, 8, 23]

There are 11 comparisons to merge the two lists

How to determine the number of comparisons?

The ordered lists are given as:

[2, 9, 12, 17, 20] and [1, 4, 5, 6, 7, 8, 23]

The number of elements in both lists are:

5 and 12

So, the number of comparison is:

Comparison = 5 + 7 - 1

Evaluate

Comparison = 11

Hence, there are 11 comparisons to merge the two lists

Read more about ordered lists at:

https://brainly.com/question/13326119


#SPJ6

ACCESS MORE