假定对有序表:(3,4,5,7,24,30,42,54,63,72,87,95)进行折半查找,若查找元素54,需依次与哪些元素比较?
A: 3,4,5,7
B: 24,30,42,54
C: 30, 63, 42, 87
D: 30, 63, 42, 54
A: 3,4,5,7
B: 24,30,42,54
C: 30, 63, 42, 87
D: 30, 63, 42, 54
举一反三
- 假定对有序表:(3,4,5,7,24,30,42,54,63,72,87,95)进行折半查找。若查找元素54,需依次与哪些元素比较?
- 假定对有序表:(3,4,5,7,24,30,42,54,63,72,87,95)进行折半查找。若查找元素54,需依次与哪些元素比较?
- 假定对有序表{3,4,5,7,24,30,42,54,63,72,87,95}进行折半查找,若查找元素54,需要比较( )次。 A: 3 B: 4 C: 5 D: 6
- 假定对有序表:(3,4,5,7,24,30,42,54,63,72,87,95)进行折半查找,试 回答下列问题:若查找元素 54,需依次与哪些元素比较?
- 假定对有序表:(3,4,5,7,24,30,42,54,63,72,87,95)进行折半查找,试 回答下列问题:若查找元素 54,需依次与哪些元素比较?