INFM 603 Homework 3
- Create a Web page that uses a binary search to search a list of
10 integer Stock-Keeping Unit numbers (SKU's) for items
that are in stock. If the entered number is found, the page should
display a message indicating that the item is available. If not, it
should display the closest available stock numbers with numbers below
and above the entered number. The search function must implement a
binary search (looking at every number is not allowed because we want
to demonstrate a technique that could be efficiently scaled up to a
million items). The SKU's that the system searches should be 357,
401, 14, 522, 399, 1, 514, 1023, 711, and 515.
- Call your Web page hw3.html, place it in the usual (603)
directory on TerpConnect and link it from index.html as usual.