; Test script for Indexing Project ; ; Simple primary key searches: ; isbn 0-06-102070-2 isbn 0-553-57538-4 ; ... this one's not there: isbn 0-123-45678-9 ; ; Single-hit author search: ; author Shaara, Jeff ; ; Multi-hit author search: ; author Whyte, Jack ; ; Simple removal: ; remove 0-380-79856-5 ; ; This should find no books after the previous removal: author Peters, Elizabeth ; ; Removal requiring a short probe sequence: ; remove 0-06-102070-2 ; ; Display tables: ; hashtable invertedtable ; ; Update a record: ; change 0-553-57538-4 345678 ; ; Add a few new records (no probing): ; add 0-451-18846-2 FICTION Desperation King, Stephen 654703 1996 add 1-56504-894-6 FANTASY Ill Met in Lankhmar Leiber, Fritz 34167 1995 add 0-385-33422-2 SCIFI Back to the Moon Hickam, Homer 240883 1999 add 0-393-04539-0 FICTION Always Outnumbered, Always Outgunned Mosley, Walter 73501 1998 ; ; Display tables: ; hashtable invertedtable ; ; Commands for testing deletion, search and tombstones ; ... a three-step probe: remove 0-8041-1548-6 ; ... this search goes over the tombstone from the previous deletion isbn 0-553-56273-8 ; ... and so does this deletion remove 0-375-70270-9 ; ; Display the tables again: hashtable invertedtable ; ; Try inserting a duplicate (no probing): add 0-8041-1037-9 MYSTERY A Dangerous Mourning Perry, Anne 217459 1991 ; ; ... and one that requires probing past a tombstone: add 0-553-56273-8 SCIFI Doomsday Book Willis, Connie 187403 1992 ; exit