No. of Printed Pages : 4

CC

INvi \D 0

BCS-042

DIPLOMA IN CIVIL ENGINEERING Term-End Examination June, 2013 BCS-042 : ANALYSIS AND DESIGN OF ALGORITHM Maximum Marks : 50

Time : 2 hours

Note : Question number 1 is compulsory. Answer any three from the rest (Section -B)

SECTION-A

1.

(a) Put the following classes of algorithms in increasing order of growth : (i) 0(n) (ii) 0(211)

2

1

log 2 ) (iii) 0 (Oog (iv) 0(0

(b) Write the names of the following symbols : (i) 0

3

(ii) n (iii) v (c) Write the values of the followings : (i) [4.4] (ii) [ —4.4] (iii) log2(4+16) BCS-042

1

3

P.T.O.

(d)

(e)

BCS-042

Write an algorithm for the linear search and analyse its time complexity in best case and worst case consider the following list : 15, 10, 20, 5, 3, 12, 2 Apply your Algorithm and show the steps to find an element 12 (i.e key=12) in the list given Define 0(Theta) Notation. By using Basic definition of 0, show that 3x + 5 = 0(x)

2

8

4

SECTION-B 2.

(a) Write a adjacency list and adjacency matrix representation of the following graph :

5

(b)

5

Find the time complexity of the following : for (i=1; isn; i+ +) i = i* 2 ;

3.

(a)

Explain the following terms : (i) Space complexity (ii) Time complexity (iii) Recurrence (iv) Lower bound (v) Combinational problem

5

(b)

Write a Recurrence Relation for the following Recursive factorial function : int FACT (int n)

5

if(n = =1) return 1 else return n*FACT(n —1)

BCS-042

3

P.T.O.

4.

What is an optimization problem ? What are the 10 data structure and functions required to solve optimization problem using Greedy techniques.

5.

Write a Pseudo code for merge sort algorithm. 10 Apply the merge sort algorithm to sort the following : 15, 4, 3, 10, 8, 7, 13, 6 Also write the time complexity of merge sort in worst case.

BCS-042

4

(ii) n

(d) Write an algorithm for the linear search and. 8 analyse its time complexity in best case and worst case consider the following list : 15, 10, 20, 5, 3, 12, 2. Apply your Algorithm and show the steps to find an element 12 (i.e key=12) in the list given. (e) Define 0(Theta) Notation. By using Basic. 4 definition of 0, show that 3x + ...

159KB Sizes 3 Downloads 411 Views

Recommend Documents

CLASIFICACIÓN - II DH AREGUME - MANGA CLASIFICATORIA.pdf ...
Page 4 of 6. CLASIFICACIÓN - II DH AREGUME - MANGA CLASIFICATORIA.pdf. CLASIFICACIÓN - II DH AREGUME - MANGA CLASIFICATORIA.pdf. Open.

autopsy report n - Michael Lee Nida II Memorial Site
Downey Police received a call of an armed man, accompanied by his description, seen in ... An elliptical wound appeared center chest surrounded by discoloration. .... Pneumocomosis — refer to Comer f his is a true certified copy of the record.

PROGRAMA ADMÒN. II - 2017 JFS.pdf
PROGRAMA ADMÒN. II - 2017 JFS.pdf. PROGRAMA ADMÒN. II - 2017 JFS.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying PROGRAMA ADMÒN ...

Cursos de Extensión 2017-II final.pdf
COSTO POR 3 MESES: S/. 370 (En efectivo). HORARIO AULA. ADA. KUNIYOSHI. Page 4 of 8. Cursos de Extensión 2017-II final.pdf. Cursos de Extensión ...

Clasificación II Carrera Nocturna Santiago del Teide.pdf ...
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Clasificación II ...

CLASIFICACIÓN - II DH AREGUME - MANGA FINAL.pdf ...
CLASIFICACIÓN - II DH AREGUME - MANGA FINAL.pdf. CLASIFICACIÓN - II DH AREGUME - MANGA FINAL.pdf. Open. Extract. Open with. Sign In. Main menu.

Clasificación Senior A Femenina II TPSSC.pdf
Clasificación Senior A Femenina II TPSSC 1 / 1. Page 1 of 1. Clasificación Senior A Femenina II TPSSC.pdf. Clasificación Senior A Femenina II TPSSC.pdf.

Clasificación II Carrera Nocturna Santiago del Teide.pdf ...
94 94 275 Brian John Russell 36:43 8:56 4:54 VETER M 6. 95 95 131 Fabián González Tejera 36:58 9:11 4:56 SUB25 M 19. 96 96 44 Juan Ramón Castro ...

Prospecto Admisión UNCP 2017 - II .pdf
PROSPECTO DE ADMISIÓN 2017-II. EDITOR RESPONSABLE: Lic. Oscar Obispo Romero. COLABORADORES: Jorge Luna De la Roca. Marleny Salva Ancieta.

MSc-II Statistics N-56090.pdf
2 (a) What is meant by income distribution ? Explain how the. (i) Lorentz curve and (ii) Pareto distribution law of income. useful in studying the pattern of income ...

n
... of Computer Science. University of Western Ontario ... Research was supported in part by Natural Sciences and Engineering. Research ... Computer Science, FOCS'2000, November 2000. ...... PhD thesis, University of Toronto, 1993. 196 pp.

n
Department of Computer Science. University ... Computer Science, FOCS'2000, November 2000. ..... nant is a nonzero function with total degree at most k in the.

INVESTIGACIÓN ACCIÓN PARTICIPATIVA.pdf
Analysis: Transcribed textual data from field notes,. interviews and focus groups was imported into a. qualitative data software program (NVIVO V. 10) and.

3. PRESENTACIÓN 2 INDUCCIÓN SOCIONAMBIENTAL ...
PRESENTACIÓN 2 INDUCCIÓN SOCIONAMBIENTAL PRESENTACIÓN USAC.pdf. 3. PRESENTACIÓN 2 INDUCCIÓN SOCIONAMBIENTAL PRESENTACIÓN ...

Adrián Galdrán
Master on Mathematical Modelization, Statistics and Computation, Tec- nalia Research .... Full Degree in Official Language School of Alicante (B2-equivalent).

INSTRUCTIVO DE PREINSCRIPCIÓN Y PLANILLA 2017-II P-108.pdf ...
Page 3 of 8. INSTRUCTIVO DE PREINSCRIPCIÓN Y PLANILLA 2017-II P-108.pdf. INSTRUCTIVO DE PREINSCRIPCIÓN Y PLANILLA 2017-II P-108.pdf. Open.

declaración jurada II kdd mentesa bastia 2015.pdf
There was a problem loading more pages. Retrying... Whoops! There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. declaración jurada II kdd mentesa bastia 2015.p

CLASIFICACIÓN XIV CAMPEONATO ARAGÓN KYOKUSHIN.pdf ...
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item.

Explicación-división-ABN.pdf
A 37 le quito 35 y como la. diferencia es 2 (menor que. el dividendo 5) ese es el. resto. 37. 50. R = 2. El resultado es la suma de la. última columna (10 + 7 = 17).

Reaction of N,N '-disubstituted hydrazinecarbothioamides ... - Arkivoc
Dec 23, 2017 - b Institute of Organic Chemistry, Karlsruhe Institute of Technology,76131Karlsruhe, Germany ... structures of products were proved by MS, IR, NMR, elemental analyses and X-ray structure analyses. ... The structures of thiazoles 3cb, 4b

N - GitHub
finding, base calling, SNP calling, copy number variation calling, and chromatin ...... Proceedings / International Conference on Intelligent Systems for Molecular ...

Gerald N
Mar 27, 2013 - 3545 SW Corporate Parkway, Palm City, FL 34990 .... execution and adequate capital are risks to any small, emerging business, we believe that an investment in .... Panache management had identified a gap in the vodka market that .... U

NR220105 II B.Tech II Semester Supplementary Examinations ...
(b) One bag contains 4 White balls and 3 black balls and a second bag contains 3 ... [8+8] · 3. (a) The amount of bread ( in hundreds of pounds) X that a certain ...