answersLogoWhite

0

OPTIMAL STORAGE ON TAPES

We want to store files of lengths (in MB) {12,34,56,73,24,11,34,56,78,91,34,91,45} on

three tapes. How should we store them on the three tapes so that the mean retrieval

time is minimized?

SOLUTION: STORE FILES BY NON-DECREASING LENGTH

First sort the files in increasing order of length. For this we can use heap sort, merge sort

or quick-sort algorithms.

11 12 24 34 34 34 45 56 56 73 78 91 91

Now distribute the files:

First element 11

Tape 11

1

Tape

2

Tape

3

Second element 12

Tape 11

1

Tape 12

2

Tape

3

Third element 24

Tape 11

1

Tape 12

2

Tape 24

3

Fourth element 34

Tape 11 34

1

Tape 12

2

Tape 24

3

Fifth element 34

Tape 11 34

1

Tape 12 34

2

Tape 24

3

Sixth element 34

Tape 11 34

1

Tape 12 34

2

Tape 24 34

3

Seventh element 45

Tape 11 34 45

1

Tape 12 34

2

Tape 24 34

3

Eigth element 56

Tape 11 34 45

1

Tape 12 34 56

2

Tape 24 34

3

Ninth element 56

Tape 11 34 45

1

Tape 12 34 56

2

Tape 24 34 56

3

Tenth element 73

Tape 11 34 45 73

1

Tape 12 34 56

2

Tape 24 34 56

3

Eleventh element 78

Tape 11 34 45 73

1

Tape 12 34 56 78

2

Tape 24 34 56

3

Twelth element 91

Tape 11 34 45 73

1

Tape 12 34 56 78

2

Tape 24 34 56

3

Thirteenth element 91

Tape 11 34 45 73

1

Tape 12 34 56 78

2

Tape 24 34 56

3

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Are magnetic tapes permanent storage or temporary?

Magnetic storage:Yes magnetic tapes are permanent storage and are the best permanent storage. These are very slower storage but are very cheap storage then RAM or other kind of memory.


Are tapes a magnetic storage device?

Yes, they ARE magnetic


What are the release dates for My Dad's Tapes - 2011 The Storage Unit 1-30?

My Dad's Tapes - 2011 The Storage Unit 1-30 was released on: USA: 15 January 2012


What are the release dates for My Dad's Tapes - 2011 The Storage Contents 1-43?

My Dad's Tapes - 2011 The Storage Contents 1-43 was released on: USA: 16 January 2012


Are magnetic tapes usb or optical storage?

Neither. They are removable magnetic storage. Optical storage consist of CDs, DVDs, etc.


What is the optimal fridge temperature for food storage?

The optimal fridge temperature for food storage is 37 to 40 degrees Fahrenheit.


What is the optimal refrigerator temperature for food storage?

The optimal refrigerator temperature for food storage is 37 to 40 degrees Fahrenheit.


What are the release dates for My Dad's Tapes - 2011 The Storage Contents Part I 1-32?

My Dad's Tapes - 2011 The Storage Contents Part I 1-32 was released on: USA: 5 December 2011


What are some ideas to use as cassette tape storage?

There are many ways to store cassette tapes. Storage products, specifically designed for cassette tapes, can be purchased from Amazon. These include cassette tape storage albums in which 6, 8, 10 or 12 cassettes can be stored.


What is the optimal refrigerator and freezer temperature for food storage?

The optimal refrigerator temperature for food storage is 37-40 degrees Fahrenheit, while the optimal freezer temperature is 0 degrees Fahrenheit.


What does it cost to get new tapes for a tape drive?

depending on the drive the tapes cost anywheres from 10 to 40 dollars. This also depends on the capacity of the tapes as well as format. Ordering online is the best choice for tapes as many stores don't carry them and retailers that do often time have a very considerable amount of mark up.


What degree should a refrigerator be set at for optimal food storage?

A refrigerator should be set at a temperature of 37-40 degrees Fahrenheit for optimal food storage.