



















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




















a c d f g h j l m o p r s u v x z
binary search for the letter ‘j’
center element
search interval
a c d f g h j l m o p r s u v x z
binary search for the letter ‘j’
center element
search interval
a c d f g h j l m o p r s u v x z
binary search for the letter ‘j’
center element
search interval
a c d f g h j l m o p r s u v x z
binary search for the letter ‘j’
center element
search interval
Input Size Algorithm A Algorithm B n 10 100 1, 1,000,
5,000n 50, 500, 5,000, 5 ⋅ 109
1.1 n 3