Assignment 2

COMP9315 21T1 ♢ Assignment 2 ♢ [0/12]
❖ Assignment 2

Aim: implement variants of signature-based indexing   (SIMC, CATC)

Implement individual relations and commands to work on them.

Each relation R consists of multiple files:

Each relation implements one signature style  (SIMC or CATC)
COMP9315 21T1 ♢ Assignment 2 ♢ [1/12]
❖ Assignment 2 (cont)

File structures for signature info + data files

[Diagram:Pics/assignments/file-structs.png]


Tuples are all tupSize bytes long (based on # attributes)

Signatures are m  bits long, rounded to ceil(m/8)  bytes

COMP9315 21T1 ♢ Assignment 2 ♢ [2/12]
❖ Assignment 2 (cont)

Superimposed codewords (SIMC):

Concatenated codewords (CATC):
COMP9315 21T1 ♢ Assignment 2 ♢ [3/12]
❖ Assignment 2 (cont)

More detailed file structures for data + signature files

[Diagram:Pics/assignments/simc-pages.png]

COMP9315 21T1 ♢ Assignment 2 ♢ [4/12]
❖ Assignment 2 (cont)

[Diagram:Pics/assignments/make-sig.png]


[Diagram:Pics/assignments/make-catc-sig.png]

COMP9315 21T1 ♢ Assignment 2 ♢ [5/12]
❖ Assignment 2 (cont)

We supply:

You complete the ADTs so that the commands work properly
COMP9315 21T1 ♢ Assignment 2 ♢ [6/12]
❖ Assignment 2 (cont)

./create RelName SigType #tuples #attrs 1/pF

COMP9315 21T1 ♢ Assignment 2 ♢ [7/12]
❖ Assignment 2 (cont)

./gendata #tuples #attributes [startID] [seed]

COMP9315 21T1 ♢ Assignment 2 ♢ [8/12]
❖ Assignment 2 (cont)

./insert [-v] RelName

COMP9315 21T1 ♢ Assignment 2 ♢ [9/12]
❖ Assignment 2 (cont)

./select RelName 'Query'

COMP9315 21T1 ♢ Assignment 2 ♢ [10/12]
❖ Assignment 2 (cont)

ADTs that you need to complete


You should not change any of the commands  (e.g. select.c)
COMP9315 21T1 ♢ Assignment 2 ♢ [11/12]
❖ Assignment 2 (cont)

What to do now?

Testing script available next week.

Don't wait. It's easy to devise your own tests.

COMP9315 21T1 ♢ Assignment 2 ♢ [12/12]


Produced: 30 Mar 2021