0% found this document useful (0 votes)
235 views2 pages

Soal Latihan

- Fixed blocking method calculates record size, block size, transfer rate, seek time, and processing times for non-key and key records. Total processing times are 12868.59 seconds for non-key records and 637.5 seconds for key records. - Variable times calculated include block transfer time of 0.1 seconds, file log processing time of 10.31 seconds, non-key total update time of 12868.6 seconds, key total update time of 35.02 seconds, sort time of 11.29 seconds, and total file processing times of 25736.29 seconds and 51461.29 seconds. - The summary concludes by stating the problem continues the calculations for variable-length sp

Uploaded by

Geby
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
235 views2 pages

Soal Latihan

- Fixed blocking method calculates record size, block size, transfer rate, seek time, and processing times for non-key and key records. Total processing times are 12868.59 seconds for non-key records and 637.5 seconds for key records. - Variable times calculated include block transfer time of 0.1 seconds, file log processing time of 10.31 seconds, non-key total update time of 12868.6 seconds, key total update time of 35.02 seconds, sort time of 11.29 seconds, and total file processing times of 25736.29 seconds and 51461.29 seconds. - The summary concludes by stating the problem continues the calculations for variable-length sp

Uploaded by

Geby
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

SOAL LATIHAN

Diketahui file sequential :


Putaran disk = 8000 rpm
Seek time (s) = 5 ms = 0,005 s
Transfer rate (t) = 2048 byte/s
TRW = 2r
Ukuran blok (B) = 4096 byte
Ukuran pointer blok (P) = 8 byte
IBG (G) = 1024 byte
Jumlah record pada file (n) = 100000 record
Jumlah field (a) = 8 field
Panjang nilai (V) = 25 byte
Jumlah record file log (o) = 5000 record
Waktu pemrosesan (c) = 2 ms = 0,002 s
Hitung :
R, TF, TN, TI, TU, TX, TY jika metode blocking :
Fixed
Variable-length spanned
Variable-length unspanned

PEMBAHASAN SOAL LATIHAN


Metode Fixed Blocking
R = a. V = 8. 25 = 200 byte

TF (Non Kunci ) = (n + o) R / t
Bfr = B / R = 4096 / 200 = 20,48 = 20 record
W = G / Bfr = 1024 / 20 = 51 byte
t
= (t / 2) (R / (R + W))
= (2048 / 2) (200 / (200 + 51))
= 1024 (0,797) = 815,94 s
TF
= (n + o) R / t = (100000 + 5000) (200 / 815,94)
= 52500 (0,245) = 12868,59 s
TF (Kunci) = 2log (n / Bfr) (s + r + btt + c) + TFO
r = (60 . 1000) / (2 rpm) = 60000 / (2. 8000) = 3,75 ms = 0,00375 s
btt = B / t = 4096 / 2048 = 2 s
TFo = o R / t = (5000) (200 / 815,94) = 612,79 s
TF
= 2log (n / Bfr) (s + r + btt + c) + TFO
= 2log (100000 / 20) (0,005 + 0,00375 + 2 + 0,002) + 612,79
= 2log (5000) (2,01075) + 612,79
= 12,29 (2,01075) + 612,79 = 637,5 s

TN = btt / Bfr = 2 / 20 = 0,1 s

TI = s + r + TRW + (TY / o)
Tsort (o) = 2log (o / btt) = 2log (5000 / 2) = 11,29 s
TY
= Tsort (o) + 2 (n + o) (R / t)
= 11,29 + 2 (100000 + 5000) (200 / 815,94)
= 11,29 + 210000 (0,245) = 51461,29 s
TI
= s + r + TRW + (TY / o) = 0,005 + r + 2r + (51461,29 / 5000)
= 0,005 + 3r + 10,29 = 0,005 + 3 (0,00375) + 10,29 = 10,31 s

TU (Non Kunci)

= TF + TRW
= 12868,59 + 2 (0,00375)
= 12868,6 s

TU (Kunci) = TF (main) + TI (file log)


TF (main) = 2log (n / Bfr) (s + r + btt + c)
= 2log (100000 / 20) (0,005 + 0,00375 + 2 + 0,002)
= 2log (5000) (2,01075) = 24,71 s
TU = TF (main) + TI (file log) = 24,71 + 10,31 = 35,02 s

TX

= Tsort (o) + (n + o) R / t
= 11,29 + (100000 + 5000) (200 / 815,94)
= 11,29 + 105000 (0,245) = 25736,29 s

TY = 51461,29 s

Lanjutkan penyelesaian latihan dengan metode Variable-Length


Spanned dan Variable-Length Unspanned

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy