Suppose that the relation StarIn discussed in Example 814 r

###

Suppose that the relation StarIn discussed in Example 8.14 required 100 pages rather than 10, but all other assumptions of that example continued to hold. Give formulas in terms of p_1 and p_2 to measure the cost of queries Q_1 and Q_2 and insertion I, under the four combinations of index/no index discussed there.

Solution

ANSWER:

Action

No Index

Star Index

Movie Index

Both Indexes

Q1

100

4

100

4

Q2

100

100

4

4

I

2

4

4

6

Average

2 + 98p1 + 98p2

4+96p2

4 + 96p1

6 – 2p1 – 2p2

Explanation:

Action

No Index

Star Index

Movie Index

Both Indexes

Q1

100

4

100

4

Q2

100

100

4

4

I

2

4

4

6

Average

2 + 98p1 + 98p2

4+96p2

4 + 96p1

6 – 2p1 – 2p2

### Suppose that the relation StarIn discussed in Example 8.14 required 100 pages rather than 10, but all other assumptions of that example continued to hold. G
### Suppose that the relation StarIn discussed in Example 8.14 required 100 pages rather than 10, but all other assumptions of that example continued to hold. G

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site