-trees the readrecord function def readrecord(file,recnum,recsize)file seek(recnum*recsizerecord file read(recsizereturn record python includes seek method on files to position the read head of disk to byte offset within file the read method on files reads given number of bytes and returns them as string to test this readrecord functionand the functionality of the seek methoda program was written to randomly access the records in the feedattribute tbl file the results of that experiment are shown in fig the data shows that accessing any record within the file took about the same amount of time regardless of its position within the file as with any experimentthere were few anomalies butthe vast majority of records were accessed in the same amount of time or nearly the same amount of time let' say we were to organize the feed tbl and the feedattribtype tbl files so that the records were sorted in increasing order by their keys the feed tbl file would be sorted by feedid and the feedattribtype tbl would be sorted by feedattribtypeid then we could use binary search on these two files to find the matching records for each feed attribute in the code of sect since the tables are randomly accessiblethe query time could be reduced from ( *mto ( log mhoweverfig access time for randomly read records in file this copy belongs to 'acha