You are on page 1of 3

AR Lucky Team

Cs614 Assignment No 02

ID: Bc000000000

Name: Student Name

Question No 1:
Let suppose, a multinational vehicle manufacturing company recently initiated
its business in Pakistan. Each of the vehicles manufactured by the company
requires 10 weeks for completion. The company management is now
interested to introduce a pipeline where: assembling, wrapping, welding and
stamping activities will be done in parallel.

You are required to calculate the speed up time that could be achieved
after implementing pipeline for manufacturing of 100 vehicles in a row.

Solution:

Sequential execution: N x T = 100 x 10 =


1000 AWWS Formula = T + (N-1)
x T/M

= 10 + (100-1) x 10/4

= 10 + (99) x 10/4
AR Lucky Team
= 10 + 247.5 = 257.5
Now calculate the speed up Time

NT
Formula : S 
T  (N 1)  T
M

Speed up  1000
257.5
Speed up  3.88times

Question No 2:
Consider the following table structure for storing the student records in a
university, you are required to apply Cluster indexing on the basis of "Age and
City" for the given table.

Student_ID Name Age City Department


01 Salman 19 Lahore CS
02 Ali 19 Islamabad SE
03 Ahmad 20 Karachi CS
04 Farooq 21 Lahore CS
05 Adil 19 Karachi IT
06 Usman 20 Lahore SE

Solution:

Cluster indexing on basis of age:

Student ID Name Age City Department


01 Salman 19 Lahore CS
02 Ali 19 Islamabad SE
03 Ahmad 19 Karachi CS
04 Farooq 20 Lahore CS
05 Adil 20 Karachi IT
06 Usman 21 Lahore SE

Cluster indexing on basis of city:


AR Lucky Team
Student_ID Name Age City Department
01 Salman 19 Islamabad CS
02 Ali 19 Karachi SE
03 Ahmad 19 Karachi CS
04 Farooq 20 Lahore CS
05 Adil 20 Lahore IT
06 Usman 21 Lahore SE

Services For Vu All Subjects


(Assignment Ms-Word, Quizzes, GDBs)
(Short Notes, Lecture Watching)
WhatsApp No: 0304-2387216

You might also like