cs186_sp08_mt1-9 - $35 Power tools Cordless 43121 Hammer...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Name: __________________________________ d. (4 pts) Consider a system with 1 kilobyte pages. If we devote 1 gigabyte of memory space for input buffers, and we do not use double buffering, what is the largest file we can sort in two passes? (Remember 1 KB = 2 10 bytes, 1 MB = 2 20 bytes, 1 GB = 2 30 bytes, 1 TB = 2 40 bytes, and 1 PB = 2 50 bytes) i. 1 GB ii. 100 GB iii. 1 TB iv. 1 PB ANSWER: _______ Relational Algebra Consider the following relations for a sales database for a chain of hardware stores: Products PRODUCT_ID NAME MSRP CATEGORY NOTES 42341 Drill
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: $35 Power tools Cordless 43121 Hammer $15 Hand tools None 63433 Drywall nail $0.15 Nails 2 64221 Roofing nail $0.15 Nails 1 53433 Table saw $215 Power tools Safety shield Stores STORE_ID ADDRESS REGION MANAGER 13 1 Main St., San Jose WEST Bob Smith 15 2 Elm Rd., NY EAST Naomi Smith 19 5 Shady Ln, Austin CENTRAL Tim Gunn 22 8 River Rd., Seattle WEST Johnny Rocket Sales DATE PRODUCT_ID STORE_ID QUANTITY PRICE Jan. 1 43121 15 1 $15 Dec. 8 64221 22 100 $0.11 Mar. 3 53433 22 1 $210 9...
View Full Document

Ask a homework question - tutors are online