Thursday, July 20, 2017

Latihan Soal Index Sequential File

Soal!

Diketahui data suatu sistem dikelola menggunakan struktur sequential dengan parameter sbb :

  • Jumlah record file (n) = 1000000 record
  • Jumlah field (a) = 8 byte
  • Jumlah rata-rata nilai (V) = 25 byte

Parameter harddisk

  • Putaran disk = 8000 rpm
  • Seek time (s) = 5 ms
  • Transfer rate (t) = 2048 byte/s
  • TRW = 2 ms

Parameter penyimpanan

  • Ukuran block (B) = 4096 byte
  • Ukuran pointer block (P) = 8 byte
  • Ukuran interblock gap (G) = 1024 byte

Parameter reorganisasi

  • File log transaksi (o) = 5000 record

Parameter pemrosesan

  • Waktu untuk pemrosesan block (c) = 2 ms
Carilah fanout(y), height(x), R, TF, TN, TI, TU, TX, TY!

Jawaban:

  1. y = (B) / (V + P)
    y = (4096) / (25 + 8)
    y = 124,12

  2. height (x)
    R = a.V + P
    R = 8.25 + 8
    R = 208

    Bfr = B/R
    Bfr = 4096/208
    Bfr = 19,69

    x = ylog (n/Bfr)
    x = 124,12log (1000000/19,69)
    x = 2,24

  3. TF
    Btt = B/t
    Btt = 4096/2048
    Btt = 2

    r = 1/2 * ((60 * 1000)/RPM)
    r = 1/2 * ((60 * 1000)/8000)
    r = 3,75

    TF = (x + 1 + o/n)*(s + r + btt)
    TF = (2,24 + 1 + 5000/1000000)*(5 + 3,75 + 2)
    TF = 34,88

  4. TN = ((1/Bfr)*(s + r + btt))*((o/n)*(r + btt))
    TN = ((1/19,69)*(5 + 3,75 + 2))*((5000/1000000)*(3,75 + 2))
    TN = 0,01

  5. TI = TF + 5r + btt
    TI = 34,88 + 5.3,75 + 2
    TI = 55,63

  6. TU = TF + TRW + TI
    TU = 34,88 + 2 + 55,63
    TU = 92,551

  7. TX = TF + (n + o' - 1)TN
    TX = 34,88 + (1000000 + 5000 - 1)0,01
    TX = 10084,87

  8. TY
    WG = G / Bfr
    WG = 1024 / 19,69
    WG = 52

    WR = B / Bfr
    WR = 4096 / 19,69
    WR = 208,02

    W = WG + WR
    W = 52 + 208,02
    W = 260,02

    t' = (t/2) * {R / (R + W)}
    t' = (2048/2) * {208 / (208 + 260,02)}
    t' = 450,56

    TY = (((n + (o * Bfr)) / Bfr) * (r + btt)) + (((n + o) - d) * (R/t')) + ((V + P) / r)
    TY = (((1000000 + (5000 * 19,69)) / 19,69) * (3,75 + 2)) + (((1000000 + 5000) - 0) * (208/450,56)) + ((25 + 8) / 3,75)

    TY = 783085,2

Baca Post Lain :

Penyimpanan Sekunder
File Pile
Organisasi File Sequential
Index Sequential File
Latihan Soal Penyimpanan Sekunder
Latihan Soal Filepile
Latihan Soal Organisasi File Sequential
Latihan Soal Index Sequential File
Share:

0 comments:

Post a Comment