Rabu, 16 Maret 2011

tugas STBI 1























Exercise 1.2
Bandingkan Dokumen di bawah ini
  1. Doc 1 : breathrough drug for schizophrenia
  2. Doc 2 : new schizophrenia drug
  3. Doc 3 : new approach for treatment of schizophrenia
  4. Doc 4 : new hopes for schizophrenia patients
a. Gambar matriks kata-kata yang berhubungan dengan dokumen di atas


Doc 1 Doc 2 Doc 3 Doc 4
Breakthrougt 1 0 0 0
Drug 1 1 0 0
For 1 0 1 1
Schizophenia 1 1 1 1
New 0 1 1 1
Approach 0 0 1 0
Treatment 0 0 1 0
Of 0 0 1 0
Hopes 0 0 0 1
Patients 0 0 0 1


Exercise 1.7
Rekomendasikan pemrosesan order query untuk (tangerine OR tress) AND (marmalade OR skies) AND (kaleidoscope OR eyes) apabila hasil daftar posting yang diketahui sebagai berikut:

Term
Posting Size
Eyes
213312
Kaleidoscope
87009
Marmalade
107913
Skies
271658
Tangerine
46653
Trees
316812

(tangerine OR trees) AND (marmalade OR skies) AND (kaleidoscope OR eyes)
trees AND skies AND eyes 

Exercise 1.10

INTERSECT(X,Y)
answer <-- ( )
while X != NIL or Y != NIL
do if docID (X) = docID (Y)
then ADD(answer,docID(X))
X <-- next (X)
Y <-- next (Y)
else if docID (X) <>
then X <-- next (X)
else Y <-- next (Y)

perbandingan kalimat spongebob squarepants and patrick

pada yahoo spongebob


pada google
 

perbandingan kalimat spongebob squarepants not patrick


pada yahoo not

pada google not