Q.1 Q.20 Carry One Mark Each. is differentiable for all real values of x

Size: px
Start display at page:

Download "Q.1 Q.20 Carry One Mark Each. is differentiable for all real values of x"

Transcription

1 Q. Q.0 Carry One Mark Each CS Computer Scence: Gate 007 Paper. Consder the followng two statements about the functon f ( x) = x : P. f ( x) s contnuous for all real values of x Q. f ( x) s dfferentable for all real values of x Whch of the followng s TRUE? (A) P s true and Q s false. (C) Both P and Q are true. (B) P s false and Q s true. (D) Both P and Q are false.. Let S be a set of n elements. The number of ordered pars n the largest and the smallest equvalence relatons on S are: (A) n and n (B) n and n (C) n and 0 (D) n and 3. What s the maxmum number of dfferent Boolean functons nvolvng n Boolean varables? (A) n (B) n (C) n (D) n 4. Let G be the non-planar graph wth the mnmum possble number of edges. Then G has (A) 9 edges and 5 vertces (C) 0 edges and 5 vertces (B) 9 edges and 6 vertces (D) 0 edges and 6 vertces 5. Consder the DAG wth V = {,,3,4,5,6, shown below Whch of the followng s NOT a topologcal orderng? (A) (B) (C) (D) Whch of the followng problems s undecdable? (A) Membershp problem for CFGs. (B) Ambguty problem for CFGs. (C) Fnteness problem for FSAs. (D) Equvalence problem for FSAs. n any form wthout the wrtten permsson. Dscuss ths questons paper at

2 7. Whch of the followng s TRUE? (A) Every subset of a regular set s regular. (B) Every fnte subset of a non-regular set s regular. (C) The unon of two non-regular sets s not regular. (D) Infnte unon of fnte sets s regular. CS Computer Scence: Gate 007 Paper 8. How many 3-to-8 lne decoders wth an enable nput are needed to construct a 6- to-64 lne decoder wthout usng any other logc gates? (A) 7 (B) 8 (C) 9 (D) 0 9. Consder the followng Boolean functon of four varables: f ( w, x, y, z ) = (, 3, 4, 6, 9,,,4 ) The functon s: (A) ndependent of one varables. (C) ndependent of three varables. (B) ndependent of two varables. (D) dependent on all the varables. 0. Consder a 4-way set assocatve cache consstng of 8 lnes wth a lne sze of 64 words. The CPU generates a 0-bt address of a word n man memory. The number of bts n the TAG, LINE and WORD felds are respectvely: (A) 9, 6, 5 (B) 7, 7, 6 (C) 7, 5, 8 (D) 9, 5, 6. Consder a dsk pack wth 6 surfaces, 8 tracks per surface and 56 sectors per track. 5 bytes of data are stored n a bt seral manner n a sector. The capacty of the dsk pack and the number of bts requred to specfy a partcular sector n the dsk are respectvely: (A) 56 Mbyte, 9 bts (C) 5 Mbyte, 0 bts (B) 56 Mbyte, 8 bts (D) 64 Gbyte, 8 bts. The heght of a bnary tree s the maxmum number of edges n any root to leaf path. The maxmum number of nodes n a bnary tree of heght h s: (A) h (B) h (C) h+ (D) h+ 3. The maxmum number of bnary trees that can be formed wth three unlabeled nodes s: (A) (B) 5 (C) 4 (D) 3 4. Whch of the followng sortng algorthms has the lowest worst-case complexty? (A) Merge sort (B) Bubble sort (C) Quck sort (D) Selecton sort n any form wthout the wrtten permsson. Dscuss ths questons paper at

3 5. Consder the followng segment of C-code: nt j, n; j = ; whle (j <=n) j = j*; CS Computer Scence: Gate 007 Paper The number of comparsons made n the executon of the loop for any n > 0 s: (A) log n + (B) n (C) log n (D) log n + 6. Group contans some CPU schedulng algorthms and Group contans some applcatons. Match entres n Group to entres n Group. Group I (P) Gang Schedulng Group II () Guaranteed Schedulng (Q) Rate Monotonc Schedulng () Real-tme Schedulng (R) Far Share Schedulng (3) Thread Schedulng (A) P - 3 Q - R - (B) P - Q - R - 3 (C) P - Q - 3 R - (D) P - Q - 3 R - 7. Consder the followng statements about user level threads and kernel level threads. Whch one of the followng statements s FALSE? (A) Context swtch tme s longer for kernel level threads than for user level threads. (B) User level threads do not need any hardware support. (C) Related kernel level threads can be scheduled on dfferent processors n a mult-processor system. (D) Blockng one kernel level thread blocks all related threads. 8. Whch one of the followng s a top-down parser? (A) Recursve descent parser. (B) Operator precedence parser. (C) An LR(k) parser. (D) An LALR(k) parser. 9. In Ethernet when Manchester encodng s used, the bt rate s: (A) Half the baud rate. (B) Twce the baud rate. (C) Same as the baud rate. (D) None of the above 0. Whch one of the followng uses UDP as the transport protocol? (A) HTTP (B) Telnet (C) DNS (D) SMTP n any form wthout the wrtten permsson. Dscuss ths questons paper at 3

4 Q. Q.75 Carry Two Marks Each CS Computer Scence: Gate 007 Paper. How many dfferent non-somorphc Abelan groups of order 4 are there? (A) (B) 3 (C) 4 (D) 5. Let Graph(x) be a predcate whch denotes that x s a graph. Let Connected(x) be a predcate whch denotes that x s connected. Whch of the followng frst order logc sentences DOES NOT represent the statement: Not every graph s connected? (A) x ( Graph ( x) Connected ( x) ) (B) x ( Graph ( x) Connected ( x) ) (C) x ( Graph ( x ) Connected ( x) ) (D) x ( Graph ( x) Connected ( x) ) 3. Whch of the followng graphs has an Euleran crcut? (A) Any k-regular graph where k s an even number. (B) A complete graph on 90 vertces. (C) The complement of a cycle on 5 vertces. (D) None of the above 4. Suppose we unformly and randomly select a permutaton from the 0! Permutatons of,,3,..,0. What s the probablty that appears at an earler poston than any other even number n the selected permutaton? (A) (B) 0 (C) 9! 0! (D) None of these 5. Let A be a 4 4 matrx wth egenvalues -5, -,, 4. Whch of the followng s an A I egenvalue of, where I s the 4 4 dentty matrx? I A (A) -5 (B) -7 (C) (D) 6. Consder the set S { a b c d =,,,. Consder the followng 4 parttons,, 3, 4 on { { { { S : = abcd, = ab, cd, = abc, d, = a, b, c, d. Let p be the partal 3 4 order on the set of parttons S {,, 3, 4 refnes. The poset dagram for (, ) only f (A) j = defned as follows: p j f and S p s: (B) All rghts reserved by GATE Forum Educatonal Servces Pvt. Ltd., No part 3 of ths booklet may be reproduced or utlzed n any form wthout the wrtten permsson. Dscuss ths questons paper at 4

5 (C) CS Computer Scence: Gate 007 Paper (D) Consder the set of (column) vectors defned by 3 T T { 3 3 X = x R x + x + x = 0, where x = x, x, x. Whch of the followng s TRUE? (A) {,,0 T T,,0, (B) {,,0 T T,,0, s a bass for the subspace X. s a lnearly ndependent set, but t does not span X and therefore s not a bass of X. (C) X s not a subspace of (D) None of the above 3 R xn 9 8. Consder the seres xn+ = +, x0 = 0.5 obtaned from the Newton-Raphson 8x n method. The seres converges to (A).5 (B) (C).6 (D).4 9. A mnmum state determnstc fnte automaton acceptng the language { { 0, *, number of 0s and s n are dvsble by 3 and 5, respectvely L = w w w has (A) 5 states (B) states (C) 0 states (D) 9 states 30. The language { 0 L 0 = over the alphabet { (A) not recursve (B) s recursve and s a determnstc CFL. (C) s a regular language. (D) s not a determnstc CFL but a CFL. 0,, s: n any form wthout the wrtten permsson. Dscuss ths questons paper at 5

6 3. Whch of the followng languages s regular? { { R x, w + 0, CS Computer Scence: Gate 007 Paper + { R {, 0, xww + x w (A) ww R w + R { 0, (B) ww x x, w { 0, (C) { (D) { 3. Let f ( w, x, y, z ) = ( 0,4,5,7,8,9,3,5 ). Whch of the followng expressons are NOT equvalent to f? (P) x y z + w xy + wy z + xz (Q) w y z + wx y + xz (R) w y z + wx y + xyz + xy z (S) x y z + wx y + w y (A) P only (B) Q and S (C) R and S (D) S only 33. Defne the connectve * for the Boolean varables X and Y as: X * Y = XY + X Y. Let Z = X * Y. Consder the followng expressons P, Q and R. P : X = Y * Z Q : Y = X * Z R : X * Y * Z = Whch of the followng s TRUE? (A) Only P and Q are vald. (C) Only P and R are vald. (B) Only Q and R are vald. (D) All P, Q, R are vald. 34. Suppose only one multplexer and one nverter are allowed to be used to mplement any Boolean functon of n varables. What s the mnmum sze of the multplexer needed? (A) n lne to lne (C) (B) n lne to lne (D) n+ lne to lne n lne to lne 35. In a look-ahead carry generator, the carry generate functon G and the carry propagate functon P for nputs A and B are gven by: P = A B and G = A B The expressons for the sum bt S and the carry bt C + of the look-ahead carry adder are gven by: S = P C and C = G + PC, where C s the nput carry. + 0 Consder a two-level logc mplementaton of the look-ahead carry generator. Assume that all P and G are avalable for the carry generator crcut and that the AND and OR gates can have any number of nputs. The number of AND gates and OR gates needed to mplement the look-ahead carry generator for a 4-bt adder wth S3, S, S, S0 and C 4 as ts outputs are respectvely: (A) 6, 3 (B) 0, 4 (C) 6, 4 (D) 0, 5 n any form wthout the wrtten permsson. Dscuss ths questons paper at 6

7 CS Computer Scence: Gate 007 Paper 36. The control sgnal functons of a 4-bt bnary counter are gven below (where X s don t care ): Clear Clock Load Count Functon X X X Clear to 0 0 X 0 0 No change 0 X Load nput 0 0 Count next The counter s connected as follows: A 4 A A 3 A Count= Clear 4-bt counter Load=0 Clock Inputs 0 0 Assume that the counter and gate delays are neglgble. If the counter starts at 0, then t cycles through the followng sequence: (A) 0, 3, 4 (B) 0, 3, 4, 5 (C) 0,,, 3, 4 (D) 0,,, 3, 4, Consder a ppelned processor wth the followng four stages: IF: Instructon Fetch ID: Instructon Decode and Operand Fetch EX: Execute WB: Wrte Back The IF, ID and WB stages take one clock cycle each to complete the operaton. The number of clock cycles for the EX stage depends on the nstructon. The ADD and SUB nstructons need clock cycle and the MUL nstructon needs 3 clock cycles n the EX stage. Operand forwardng s used n the ppelned processor. What s the number of clock cycles taken to complete the followng sequence of nstructons? ADD R, R, R0 MUL R4, R3, R SUB R6, R5, R4 R R + R0 R4 R3 * R R6 R5 R4 n any form wthout the wrtten permsson. Dscuss ths questons paper at 7

8 CS Computer Scence: Gate 007 Paper (A) 7 (B) 8 (C) 0 (D) The followng postfx expresson wth sngle dgt operands s evaluated usng a stack: 8 3 / 3 * + 5 * - Note that s the exponentaton operator. The top two elements of the stack after the frst * s evaluated are: (A) 6, (B) 5, 7 (C) 3, (D), The norder and preorder traversal of a bnary tree are d b e a f c g and a b d e c f g, respectvely The postorder traversal of the bnary tree s: (A) d e b f g c a (B) e d b g f c a (C) e d b f g c a (D) d e f g b c a 40. Consder a hash table of sze seven, wth startng ndex zero, and a hash functon 3x + 4 mod7. Assumng the hash table s ntally empty, whch of the followng ( ) s the contents of the table when the sequence, 3, 8, 0 s nserted nto the table usng closed hashng? Note that denotes an empty locaton n the table. (A) 8,,,,,, 0 (B), 8, 0,,,, 3 (C),,,,,, 3 (D), 0, 8,,,, 3 4. In an unweghted, undrected connected graph, the shortest path from a node S to every other node s computed most effcently, n terms of tme complexty, by (A) Djkstra s algorthm startng from S. (B) Warshall s algorthm (C) Performng a DFS startng from S. (D) Performng a BFS startng from S. 4. Consder the followng C functon: nt f(nt n) {statc nt r = 0; f (n <= 0) return ; f (n > 3) {r = n; return f(n-)+; return f(n-)+r; What s the value of f ( 5 )? (A) 5 (B) 7 (C) 9 (D) 8 n any form wthout the wrtten permsson. Dscuss ths questons paper at 8

9 CS Computer Scence: Gate 007 Paper 43. A complete n-ary tree s a tree n whch each node has n chldren or no chldren. Let I be the number of nternal nodes and L be the number of leaves n a complete n-ary tree. If L = 4, and I = 0, what s the value of n? (A) 3 (B) 4 (C) 5 (D) In the followng C functon, let n m. nt gcd(n,m) { f (n%m ==0) return m; n = n%m; return gcd(m,n); How many recursve calls are made by ths functon? (A) Θ ( log n) (B) Ω ( n) (C) ( log log n) Θ (D) Θ ( n ) 45. What s the tme complexty of the followng recursve functon: nt DoSomethng (nt n) { (A) ( n ) f (n <= ) else return ; return (DoSomethng (floor(sqrt(n))) + n); Θ (B) Θ ( n n) (C) Θ ( log n) (D) Θ ( log log n) log 46. Consder the followng C program segment where CellNode represents a node n a bnary tree: struct CellNode { ; struct CellNOde *leftchld; nt element; struct CellNode *rghtchld; nt GetValue (struct CellNode *ptr) { nt value = 0; f (ptr!= NULL) { else f ((ptr->leftchld == NULL) && (ptr->rghtchld == NULL)) value = ; value = value + GetValue(ptr->leftChld) n any form wthout the wrtten permsson. Dscuss ths questons paper at 9

10 return(value); CS Computer Scence: Gate 007 Paper + GetValue(ptr->rghtChld); The value returned by GetValue when a ponter to the root of a bnary tree s passed as ts argument s: (A) the number of nodes n the tree (B) the number of nternal nodes n the tree (C) the number of leaf nodes n the tree (D) the heght of the tree 47. Consder the process of nsertng an element nto a Max Heap, where the Max Heap s represented by an array. Suppose we perform a bnary search on the path from the new leaf to the root to fnd the poston for the newly nserted element, the number of comparsons performed s: (A) Θ ( log n) (B) Θ ( log log n) (C) Θ ( n) (D) Θ ( n n) log 48. Whch of the followng s TRUE about formulae n Conjunctve Normal Form? (A) For any formula, there s a truth assgnment for whch at least half the clauses evaluate to true. (B) For any formula, there s a truth assgnment for whch all the clauses evaluate to true. (C) There s a formula such that for each truth assgnment, at most one-fourth of the clauses evaluate to true. (D) None of the above. 49. Let w be the mnmum weght among all edge weghts n an undrected connected graph. Let e be a specfc edge of weght w. Whch of the followng s FALSE? (A) There s a mnmum spannng tree contanng e. (B) If e s not n a mnmum spannng tree T, then n the cycle formed by addng e to T, all edges have the same weght. (C) Every mnmum spannng tree has an edge of weght w. (D) e s present n every mnmum spannng tree. 50. An array of n numbers s gven, where n s an even number. The maxmum as well as the mnmum of these n numbers needs to be determned. Whch of the followng s TRUE about the number of comparsons needed? (A) At least n c comparsons, for some constant c, are needed. (B) At most.5n comparsons are needed. (C) At least nlog (D) None of the above. ncomparsons are needed. n any form wthout the wrtten permsson. Dscuss ths questons paper at 0

11 5. Consder the followng C code segment: nt IsPrme(n) { nt,n; for(=;<=sqrt(n);++) f(n% == 0) CS Computer Scence: Gate 007 Paper {prntf( Not Prme\n ); return 0; return ; Let T ( n) denote the number of tmes the for loop s executed by the program on nput n. Whch of the followng s TRUE? (A) T ( n) = O ( n ) and T ( n) = Ω ( n ) (B) T ( n) = O ( n ) and T ( n) = Ω ( ) (C) T ( n) O ( n) and T ( n) ( n ) = = Ω (D) None of the above =,,, termnals 5. Consder the grammar wth non-termnals N { S C S T { a, b,, t, e, = wth S as the start symbol, and the followng set of rules: S CtSS a S es ε C b The grammar s NOT LL() because: (A) t s left recursve (B) t s rght recursve (C) t s ambguous (D) t s not context-free. 53. Consder the followng two statements: P: Every regular grammar s LL() Q: Every regular set has a LR() grammar Whch of the followng s TRUE? (A) Both P and Q are true (C) P s false and Q s true (B) P s true and Q s false (D) Both P and Q are false 54. In a smplfed computer the nstructons are: OP R j, R - Performs R j OP R and stores the result n regster R. OP m, R - Performs val OP R and stores the result n R. val denotes the content of memory locaton m. MOV, m R - Moves the content of memory locaton m to regster R. MOV R, m - Moves the content of regster R to memory locaton m. The computer has only to regsters, and OP s ether ADD or SUB. Consder the followng basc block: n any form wthout the wrtten permsson. Dscuss ths questons paper at

12 t = a + b t = c + d t = e t 3 t = t t 4 3 CS Computer Scence: Gate 007 Paper Assume that all operands are ntally n memory. The fnal value of the computaton should be n memory. What s the mnmum number of MOV nstructons n the code generated for ths basc block? (A) (B) 3 (C) 5 (D) An operatng system uses Shortest Remanng Tme frst (SRT) process schedulng algorthm. Consder the arrval tmes and executon tmes for the followng processes: Process Executon tme Arrval tme P 0 0 P 5 5 P P What s the total watng tme for process P? (A) 5 (B) 5 (C) 40 (D) A vrtual memory system uses Frst In Frst Out (FIFO) page replacement polcy and allocates a fxed number of frames to a process. Consder the followng statements: P: Increasng the number of page frames allocated to a process sometmes ncreases the page fault rate. Q: Some programs do not exhbt localty of reference. Whch one of the followng s TRUE? (A) Both P and Q are true, and Q s the reason for P (B) Both P and Q are true, but Q s not the reason for P. (C) P s false, but Q s true (D) Both P and Q are false. 57. A sngle processor system has three resource types X, Y and Z, whch are shared by three processes. There are 5 unts of each resource type. Consder the followng scenaro, where the column alloc denotes the number of unts of each resource type allocated to each process, and the column request denotes the number of unts of each resource type requested by a process n order to complete executon. Whch of these processes wll fnsh LAST? n any form wthout the wrtten permsson. Dscuss ths questons paper at

13 alloc (A) P0 (B) P (C) P (D) None of the above, snce the system s n a deadlock. CS Computer Scence: Gate 007 Paper request X Y Z X Y Z P0 0 3 P 0 0 P Two processes, P and P, need to access a crtcal secton of code. Consder the followng synchronzaton construct used by the processes: /* P */ whle (true) { wants = true; whle (wants==true); /* Crtcal Secton */ wants=false; /* Remander secton */ /* P */ whle (true) { wants = true; whle (wants==true); /* Crtcal Secton */ Wants=false; /* Remander secton */ Here, wants and wants are shared varables, whch are ntalzed to false. Whch one of the followng statements s TRUE about the above construct? (A) It does not ensure mutual excluson. (B) It does not ensure bounded watng. (C) It requres that processes enter the crtcal secton n strct alternaton. (D) It does not prevent deadlocks, but ensures mutual excluson. 59. Informaton about a collecton of students s gven by the relaton studnfo(studid, name, sex). The relaton enroll(studid, courseid) gves whch student has enrolled for (or taken) what course(s). Assume that every course s taken by at least one male and at least one female student. What does the followng relatonal algebra expresson represent? (( ( σ sex= ( studinfo) ) ( enroll) ) enroll) Π Π Π courseid studid "female" courseid (A) Courses n whch all the female students are enrolled. (B) Courses n whch a proper subset of female students are enrolled. (C) Courses n whch only male students are enrolled. (D) None of the above n any form wthout the wrtten permsson. Dscuss ths questons paper at 3

14 CS Computer Scence: Gate 007 Paper 60. Consder the relaton employee(name, sex, supervsorname) wth name as the key. supervsorname gves the name of the supervsor of the employee under consderaton. What does the followng Tuple Relatonal Calculus query produce? { e.name employee ( e) ( x) employee ( x ) x.supervsorname e.name x.sex = "male" (A) Names of employees wth a male supervsor. (B) Names of employees wth no mmedate male subordnates. (C) Names of employees wth no mmedate female subordnates. (D) Names of employees wth a female supervsor. 6. Consder the table employee(empid, name, department, salary) and the two queres Q, Q below. Assumng that department 5 has more than one employee, and we want to fnd the employees who get hgher salary than anyone n the department 5, whch one of the statements s TRUE for any arbtrary employee table? Q : Select e.empid From employee e Where not exsts (Select * From employee s where s.department = 5 and s.salary >=e.salary) Q : Select e.empid From employee e Where e.salary > Any (Select dstnct salary From employee s Where s.department = 5 ) (A) Q s the correct query (B) Q s the correct query (C) Both Q and Q produce the same answer. (D) Nether Q nor Q s the correct query 6. Whch one of the followng statements f FALSE? (A) Any relaton wth two attrbutes s n BCNF (B) A relaton n whch every key has only one attrbute s n NF (C) A prme attrbute can be transtvely dependent on a key n a 3 NF relaton. (D) A prme attrbute can be transtvely dependent on a key n a BCNF relaton. 63. The order of a leaf node n a B + tree s the maxmum number of (value, data record ponter) pars t can hold. Gven that the block sze s K bytes, data record ponter s 7 bytes long, the value feld s 9 bytes long and a block ponter s 6 bytes long, what s the order of the leaf node? (A) 63 (B) 64 (C) 67 (D) 68 n any form wthout the wrtten permsson. Dscuss ths questons paper at 4

15 CS Computer Scence: Gate 007 Paper 64. Consder the followng schedules nvolvng two transactons. Whch one of the followng statements s TRUE? ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) S : r X ; r Y ; r X ; r Y ; w Y ; w X S : r X ; r X ; r Y ; w Y ; r Y ; w X (A) Both S and S are conflct seralzable. (B) S s conflct seralzable and S s not conflct seralzable. (C) S s not conflct seralzable and S s conflct seralzable. (D) Both S and S are not conflct seralzable. 65. There are n statons n a slotted LAN. Each staton attempts to transmt wth a probablty p n each tme slot. What s the probablty that ONLY one staton transmts n a gven tme slot? n (A) np ( p) n (B) ( p) n (C) p ( p) (D) ( ) n p In a token rng network the transmsson speed s 0 bps and the propagaton speed s 00 metres/µs. The -bt delay n ths network s equvalent to: (A) 500 metres of cable. (C) 0 metres of cable. (B) 00 metres of cable. (D) 50 metres of cable. 67. The address of a class B host s to be splt nto subnets wth a 6-bt subnet number. What s the maxmum number of subnets and the maxmum number of hosts n each subnet? (A) 6 subnets and 64 hosts. (C) 6 subnets and 0 hosts. (B) 64 subnets and 64 hosts. (D) 64 subnets and 04 hosts. 68. The message 0000 s to be transmtted usng the CRC polynomal protect t from errors. The message that should be transmtted s: (A) (B) (C) 0000 (D) x + to 69. The dstance between two statons M and N s L klometers. All frames are K bts long. The propagaton delay per klometer s t seconds. Let R bts/second be the channel capacty. Assumng that processng delay s neglgble, the mnmum number of bts for the sequence number feld n a frame for maxmum utlzaton, when the sldng wndow protocol s used, s: LtR + K (A) log K LtR + K (C) log K LtR (B) log K LtR + K (D) log K n any form wthout the wrtten permsson. Dscuss ths questons paper at 5

16 CS Computer Scence: Gate 007 Paper 70. Match the followng: (P) SMTP () Applcaton layer (Q) BGP () Transport layer (R) TCP (3) Data lnk layer (S) PPP (4) Network layer (5) Physcal layer (A) P - Q - R - 3 S - 5 (B) P - Q - 4 R - S - 3 (C) P - Q - 4 R - S - 5 (D) P - Q - 4 R - S - 3 Common Data Questons Common Data for Questons 7, 7, 73: Consder the followng program segment. Here R, R and R3 are the general purpose regsters. Instructon Operaton Instructon sze (no.of words) MOV R, (3000) R m[3000] LOOP: MOV R, (R3) R M[R3] ADD R, R R R + R MOV (R3), R M[R3] R INC R3 R3 R3 + DEC R R R BNZ LOOP Branch on not zero HALT Stop Assume that the content of memory locaton 3000 s 0 and the content of the regster R3 s 000. The content of each of the memory locatons from 000 to 00 s 00. The program s loaded from the memory locaton 000. All the numbers are n decmal. 7. Assume that the memory s word addressable. The number of memory references for accessng the data n executng the program completely s: (A) 0 (B) (C) 0 (D) 7. Assume that the memory s word addressable. After the executon of ths program, the content of memory locaton 00 s: (A) 00 (B) 0 (C) 0 (D) 0 n any form wthout the wrtten permsson. Dscuss ths questons paper at 6

17 CS Computer Scence: Gate 007 Paper 73. Assume that the memory s byte addressable and the word sze s 3 bts. If an nterrupt occurs durng the executon of the nstructon INC R3, what return address wll be pushed on to the stack? (A) 005 (B) 00 (C) 04 (D) 040 Common Data for Questons 74, 75: Consder the followng Fnte State Automaton: q 3 b b a b a q 0 q q a a b 74. The language accepted by ths automaton s gven by the regular expresson (A) * * * * b ab ab ab (B) ( a b) * * + (C) ( ) * b a a + b (D) b * ab * ab * 75. The mnmum state automaton equvalent to the above FSA has the followng number of states (A) (B) (C) 3 (D) 4 Lnked Answer Questons: Q.76 to Q.85 Carry Two Marks Each Statement for Lnked Answer Questons 76 & 77: Suppose the letters a, b, c, d, e, f have probabltes,,,,,, respectvely. 76. Whch of the followng s the Huffman code for the letter a, b, c, d, e, f? (A) 0, 0, 0, 0, 0, (B), 0, 0, 00, 00, 000 (C), 0, 0, 00, 000, 0000 (D) 0, 00, 00, 000, 00, 77. What s the average length of the correct answer to Q.76? (A) 3 (B).875 (C).5 (D).9375 Statement for Lnked Answer Questons 78 & 79: Consder the CFG wth { S, A, B as the non-termnal alphabet, {, alphabet, S as the start symbol and the followng set of producton rules: a b as the termnal n any form wthout the wrtten permsson. Dscuss ths questons paper at 7

18 CS Computer Scence: Gate 007 Paper S ab S ba B b A a B bs A as B abb S baa 78. Whch of the followng strngs s generated by the grammar? (A) aaaabb (B) aabbbb (C) aabbab (D) abbbba 79. For the correct answer strngs to Q.78, how many dervaton trees are there? (A) (B) (C) 3 (D) 4 Statement for Lnked Answer Questons 80 & 8: 6 Consder a machne wth a byte addressable man memory of bytes. Assume that a drect mapped data cache consstng of 3 lnes of 64 bytes each s used n the system. A two-dmensonal array of bytes s stored n the man memory startng from memory locaton 00H. Assume that the data cache s ntally empty. The complete array s accessed twce. Assume that the contents of the data cache do not change n between the two accesses. 80. How many data cache msses wll occur n total? (A) 48 (B) 50 (C) 56 (D) Whch of the followng lnes of the data cache wll be replaced by new blocks n accessng the array for the second tme? (A) lne 4 to lne (B) lne 4 to lne (C) lne 0 to lne 7 (D) lne 0 to lne 8 Statement for Lnked Answer Questons 8 & 83: A process has been allocated 3 page frames. Assume that none of the pages of the process are avalable n the memory ntally. The process makes the followng sequence of page references (reference strng):,,, 3, 7, 4, 5, 6, 3, 8. If optmal page replacement polcy s used, how many page faults occur for the above reference strng? (A) 7 (B) 8 (C) 9 (D) Least Recently Used (LRU) page replacement polcy s a practcal approxmaton to optmal page replacement. For the above reference strng, how many more page faults occur wth LRU than wth the optmal page replacement polcy? (A) 0 (B) (C) (D) 3 n any form wthout the wrtten permsson. Dscuss ths questons paper at 8

19 Statement for Lnked Answer Questons 84 & 85: CS Computer Scence: Gate 007 Paper Suppose that a robot s placed on the Cartesan plane. At each step t s allowed to move, j then t can move to ether ether one unt up or one unt rght,.e., f t s at ( ) ( +, j) or (, j + ). 84. How many dstnct paths are there for the robot to reach the pont (0,0) startng from the ntal poston (0,0)? (A) (C) 0 0 (B) 0 0 (D) None of the above 85. Suppose that the robot s not allowed to traverse the lne segment from (4,4) to (5,4). Wth ths constrant, how many dstnct paths are there for the robot to reach (0,0) startng from (0,0)? (A) (C) 9 (B) (D) n any form wthout the wrtten permsson. Dscuss ths questons paper at 9

GATE 2007 Computer Science Engineering

GATE 2007 Computer Science Engineering GATE 2007 Computer Science Engineering Q.1 to Q.20 carry one mark each 1. Consider the following two statements about the function f(x)= x P : f(x)every regular grammar is LL(1) Q : f(x)every regular set

More information

The Greedy Method. Outline and Reading. Change Money Problem. Greedy Algorithms. Applications of the Greedy Strategy. The Greedy Method Technique

The Greedy Method. Outline and Reading. Change Money Problem. Greedy Algorithms. Applications of the Greedy Strategy. The Greedy Method Technique //00 :0 AM Outlne and Readng The Greedy Method The Greedy Method Technque (secton.) Fractonal Knapsack Problem (secton..) Task Schedulng (secton..) Mnmum Spannng Trees (secton.) Change Money Problem Greedy

More information

For instance, ; the five basic number-sets are increasingly more n A B & B A A = B (1)

For instance, ; the five basic number-sets are increasingly more n A B & B A A = B (1) Secton 1.2 Subsets and the Boolean operatons on sets If every element of the set A s an element of the set B, we say that A s a subset of B, or that A s contaned n B, or that B contans A, and we wrte A

More information

Compiler Design. Spring Register Allocation. Sample Exercises and Solutions. Prof. Pedro C. Diniz

Compiler Design. Spring Register Allocation. Sample Exercises and Solutions. Prof. Pedro C. Diniz Compler Desgn Sprng 2014 Regster Allocaton Sample Exercses and Solutons Prof. Pedro C. Dnz USC / Informaton Scences Insttute 4676 Admralty Way, Sute 1001 Marna del Rey, Calforna 90292 pedro@s.edu Regster

More information

Programming in Fortran 90 : 2017/2018

Programming in Fortran 90 : 2017/2018 Programmng n Fortran 90 : 2017/2018 Programmng n Fortran 90 : 2017/2018 Exercse 1 : Evaluaton of functon dependng on nput Wrte a program who evaluate the functon f (x,y) for any two user specfed values

More information

Virtual Memory. Background. No. 10. Virtual Memory: concept. Logical Memory Space (review) Demand Paging(1) Virtual Memory

Virtual Memory. Background. No. 10. Virtual Memory: concept. Logical Memory Space (review) Demand Paging(1) Virtual Memory Background EECS. Operatng System Fundamentals No. Vrtual Memory Prof. Hu Jang Department of Electrcal Engneerng and Computer Scence, York Unversty Memory-management methods normally requres the entre process

More information

Today s Outline. Sorting: The Big Picture. Why Sort? Selection Sort: Idea. Insertion Sort: Idea. Sorting Chapter 7 in Weiss.

Today s Outline. Sorting: The Big Picture. Why Sort? Selection Sort: Idea. Insertion Sort: Idea. Sorting Chapter 7 in Weiss. Today s Outlne Sortng Chapter 7 n Wess CSE 26 Data Structures Ruth Anderson Announcements Wrtten Homework #6 due Frday 2/26 at the begnnng of lecture Proect Code due Mon March 1 by 11pm Today s Topcs:

More information

ELEC 377 Operating Systems. Week 6 Class 3

ELEC 377 Operating Systems. Week 6 Class 3 ELEC 377 Operatng Systems Week 6 Class 3 Last Class Memory Management Memory Pagng Pagng Structure ELEC 377 Operatng Systems Today Pagng Szes Vrtual Memory Concept Demand Pagng ELEC 377 Operatng Systems

More information

CSE 326: Data Structures Quicksort Comparison Sorting Bound

CSE 326: Data Structures Quicksort Comparison Sorting Bound CSE 326: Data Structures Qucksort Comparson Sortng Bound Steve Setz Wnter 2009 Qucksort Qucksort uses a dvde and conquer strategy, but does not requre the O(N) extra space that MergeSort does. Here s the

More information

CSE 326: Data Structures Quicksort Comparison Sorting Bound

CSE 326: Data Structures Quicksort Comparison Sorting Bound CSE 326: Data Structures Qucksort Comparson Sortng Bound Bran Curless Sprng 2008 Announcements (5/14/08) Homework due at begnnng of class on Frday. Secton tomorrow: Graded homeworks returned More dscusson

More information

Cache Performance 3/28/17. Agenda. Cache Abstraction and Metrics. Direct-Mapped Cache: Placement and Access

Cache Performance 3/28/17. Agenda. Cache Abstraction and Metrics. Direct-Mapped Cache: Placement and Access Agenda Cache Performance Samra Khan March 28, 217 Revew from last lecture Cache access Assocatvty Replacement Cache Performance Cache Abstracton and Metrcs Address Tag Store (s the address n the cache?

More information

Design and Analysis of Algorithms

Design and Analysis of Algorithms Desgn and Analyss of Algorthms Heaps and Heapsort Reference: CLRS Chapter 6 Topcs: Heaps Heapsort Prorty queue Huo Hongwe Recap and overvew The story so far... Inserton sort runnng tme of Θ(n 2 ); sorts

More information

Problem Set 3 Solutions

Problem Set 3 Solutions Introducton to Algorthms October 4, 2002 Massachusetts Insttute of Technology 6046J/18410J Professors Erk Demane and Shaf Goldwasser Handout 14 Problem Set 3 Solutons (Exercses were not to be turned n,

More information

Sequential search. Building Java Programs Chapter 13. Sequential search. Sequential search

Sequential search. Building Java Programs Chapter 13. Sequential search. Sequential search Sequental search Buldng Java Programs Chapter 13 Searchng and Sortng sequental search: Locates a target value n an array/lst by examnng each element from start to fnsh. How many elements wll t need to

More information

Course Introduction. Algorithm 8/31/2017. COSC 320 Advanced Data Structures and Algorithms. COSC 320 Advanced Data Structures and Algorithms

Course Introduction. Algorithm 8/31/2017. COSC 320 Advanced Data Structures and Algorithms. COSC 320 Advanced Data Structures and Algorithms Course Introducton Course Topcs Exams, abs, Proects A quc loo at a few algorthms 1 Advanced Data Structures and Algorthms Descrpton: We are gong to dscuss algorthm complexty analyss, algorthm desgn technques

More information

Sorting: The Big Picture. The steps of QuickSort. QuickSort Example. QuickSort Example. QuickSort Example. Recursive Quicksort

Sorting: The Big Picture. The steps of QuickSort. QuickSort Example. QuickSort Example. QuickSort Example. Recursive Quicksort Sortng: The Bg Pcture Gven n comparable elements n an array, sort them n an ncreasng (or decreasng) order. Smple algorthms: O(n ) Inserton sort Selecton sort Bubble sort Shell sort Fancer algorthms: O(n

More information

Harvard University CS 101 Fall 2005, Shimon Schocken. Assembler. Elements of Computing Systems 1 Assembler (Ch. 6)

Harvard University CS 101 Fall 2005, Shimon Schocken. Assembler. Elements of Computing Systems 1 Assembler (Ch. 6) Harvard Unversty CS 101 Fall 2005, Shmon Schocken Assembler Elements of Computng Systems 1 Assembler (Ch. 6) Why care about assemblers? Because Assemblers employ some nfty trcks Assemblers are the frst

More information

CS1100 Introduction to Programming

CS1100 Introduction to Programming Factoral (n) Recursve Program fact(n) = n*fact(n-) CS00 Introducton to Programmng Recurson and Sortng Madhu Mutyam Department of Computer Scence and Engneerng Indan Insttute of Technology Madras nt fact

More information

6.854 Advanced Algorithms Petar Maymounkov Problem Set 11 (November 23, 2005) With: Benjamin Rossman, Oren Weimann, and Pouya Kheradpour

6.854 Advanced Algorithms Petar Maymounkov Problem Set 11 (November 23, 2005) With: Benjamin Rossman, Oren Weimann, and Pouya Kheradpour 6.854 Advanced Algorthms Petar Maymounkov Problem Set 11 (November 23, 2005) Wth: Benjamn Rossman, Oren Wemann, and Pouya Kheradpour Problem 1. We reduce vertex cover to MAX-SAT wth weghts, such that the

More information

Sorting Review. Sorting. Comparison Sorting. CSE 680 Prof. Roger Crawfis. Assumptions

Sorting Review. Sorting. Comparison Sorting. CSE 680 Prof. Roger Crawfis. Assumptions Sortng Revew Introducton to Algorthms Qucksort CSE 680 Prof. Roger Crawfs Inserton Sort T(n) = Θ(n 2 ) In-place Merge Sort T(n) = Θ(n lg(n)) Not n-place Selecton Sort (from homework) T(n) = Θ(n 2 ) In-place

More information

Assembler. Building a Modern Computer From First Principles.

Assembler. Building a Modern Computer From First Principles. Assembler Buldng a Modern Computer From Frst Prncples www.nand2tetrs.org Elements of Computng Systems, Nsan & Schocken, MIT Press, www.nand2tetrs.org, Chapter 6: Assembler slde Where we are at: Human Thought

More information

CE 221 Data Structures and Algorithms

CE 221 Data Structures and Algorithms CE 1 ata Structures and Algorthms Chapter 4: Trees BST Text: Read Wess, 4.3 Izmr Unversty of Economcs 1 The Search Tree AT Bnary Search Trees An mportant applcaton of bnary trees s n searchng. Let us assume

More information

AADL : about scheduling analysis

AADL : about scheduling analysis AADL : about schedulng analyss Schedulng analyss, what s t? Embedded real-tme crtcal systems have temporal constrants to meet (e.g. deadlne). Many systems are bult wth operatng systems provdng multtaskng

More information

Conditional Speculative Decimal Addition*

Conditional Speculative Decimal Addition* Condtonal Speculatve Decmal Addton Alvaro Vazquez and Elsardo Antelo Dep. of Electronc and Computer Engneerng Unv. of Santago de Compostela, Span Ths work was supported n part by Xunta de Galca under grant

More information

Assignment # 2. Farrukh Jabeen Algorithms 510 Assignment #2 Due Date: June 15, 2009.

Assignment # 2. Farrukh Jabeen Algorithms 510 Assignment #2 Due Date: June 15, 2009. Farrukh Jabeen Algorthms 51 Assgnment #2 Due Date: June 15, 29. Assgnment # 2 Chapter 3 Dscrete Fourer Transforms Implement the FFT for the DFT. Descrbed n sectons 3.1 and 3.2. Delverables: 1. Concse descrpton

More information

Insertion Sort. Divide and Conquer Sorting. Divide and Conquer. Mergesort. Mergesort Example. Auxiliary Array

Insertion Sort. Divide and Conquer Sorting. Divide and Conquer. Mergesort. Mergesort Example. Auxiliary Array Inserton Sort Dvde and Conquer Sortng CSE 6 Data Structures Lecture 18 What f frst k elements of array are already sorted? 4, 7, 1, 5, 1, 16 We can shft the tal of the sorted elements lst down and then

More information

CHARUTAR VIDYA MANDAL S SEMCOM Vallabh Vidyanagar

CHARUTAR VIDYA MANDAL S SEMCOM Vallabh Vidyanagar CHARUTAR VIDYA MANDAL S SEMCOM Vallabh Vdyanagar Faculty Name: Am D. Trved Class: SYBCA Subject: US03CBCA03 (Advanced Data & Fle Structure) *UNIT 1 (ARRAYS AND TREES) **INTRODUCTION TO ARRAYS If we want

More information

CSCI 104 Sorting Algorithms. Mark Redekopp David Kempe

CSCI 104 Sorting Algorithms. Mark Redekopp David Kempe CSCI 104 Sortng Algorthms Mark Redekopp Davd Kempe Algorthm Effcency SORTING 2 Sortng If we have an unordered lst, sequental search becomes our only choce If we wll perform a lot of searches t may be benefcal

More information

CMPS 10 Introduction to Computer Science Lecture Notes

CMPS 10 Introduction to Computer Science Lecture Notes CPS 0 Introducton to Computer Scence Lecture Notes Chapter : Algorthm Desgn How should we present algorthms? Natural languages lke Englsh, Spansh, or French whch are rch n nterpretaton and meanng are not

More information

Memory and I/O Organization

Memory and I/O Organization Memory and I/O Organzaton 8-1 Prncple of Localty Localty small proporton of memory accounts for most run tme Rule of thumb For 9% of run tme next nstructon/data wll come from 1% of program/data closest

More information

Data Representation in Digital Design, a Single Conversion Equation and a Formal Languages Approach

Data Representation in Digital Design, a Single Conversion Equation and a Formal Languages Approach Data Representaton n Dgtal Desgn, a Sngle Converson Equaton and a Formal Languages Approach Hassan Farhat Unversty of Nebraska at Omaha Abstract- In the study of data representaton n dgtal desgn and computer

More information

Assembler. Shimon Schocken. Spring Elements of Computing Systems 1 Assembler (Ch. 6) Compiler. abstract interface.

Assembler. Shimon Schocken. Spring Elements of Computing Systems 1 Assembler (Ch. 6) Compiler. abstract interface. IDC Herzlya Shmon Schocken Assembler Shmon Schocken Sprng 2005 Elements of Computng Systems 1 Assembler (Ch. 6) Where we are at: Human Thought Abstract desgn Chapters 9, 12 abstract nterface H.L. Language

More information

Hierarchical clustering for gene expression data analysis

Hierarchical clustering for gene expression data analysis Herarchcal clusterng for gene expresson data analyss Gorgo Valentn e-mal: valentn@ds.unm.t Clusterng of Mcroarray Data. Clusterng of gene expresson profles (rows) => dscovery of co-regulated and functonally

More information

Performance Evaluation of Information Retrieval Systems

Performance Evaluation of Information Retrieval Systems Why System Evaluaton? Performance Evaluaton of Informaton Retreval Systems Many sldes n ths secton are adapted from Prof. Joydeep Ghosh (UT ECE) who n turn adapted them from Prof. Dk Lee (Unv. of Scence

More information

Efficient Distributed File System (EDFS)

Efficient Distributed File System (EDFS) Effcent Dstrbuted Fle System (EDFS) (Sem-Centralzed) Debessay(Debsh) Fesehaye, Rahul Malk & Klara Naherstedt Unversty of Illnos-Urbana Champagn Contents Problem Statement, Related Work, EDFS Desgn Rate

More information

Parallelism for Nested Loops with Non-uniform and Flow Dependences

Parallelism for Nested Loops with Non-uniform and Flow Dependences Parallelsm for Nested Loops wth Non-unform and Flow Dependences Sam-Jn Jeong Dept. of Informaton & Communcaton Engneerng, Cheonan Unversty, 5, Anseo-dong, Cheonan, Chungnam, 330-80, Korea. seong@cheonan.ac.kr

More information

Parallel matrix-vector multiplication

Parallel matrix-vector multiplication Appendx A Parallel matrx-vector multplcaton The reduced transton matrx of the three-dmensonal cage model for gel electrophoress, descrbed n secton 3.2, becomes excessvely large for polymer lengths more

More information

An Optimal Algorithm for Prufer Codes *

An Optimal Algorithm for Prufer Codes * J. Software Engneerng & Applcatons, 2009, 2: 111-115 do:10.4236/jsea.2009.22016 Publshed Onlne July 2009 (www.scrp.org/journal/jsea) An Optmal Algorthm for Prufer Codes * Xaodong Wang 1, 2, Le Wang 3,

More information

Support Vector Machines

Support Vector Machines /9/207 MIST.6060 Busness Intellgence and Data Mnng What are Support Vector Machnes? Support Vector Machnes Support Vector Machnes (SVMs) are supervsed learnng technques that analyze data and recognze patterns.

More information

Nachos Project 3. Speaker: Sheng-Wei Cheng 2010/12/16

Nachos Project 3. Speaker: Sheng-Wei Cheng 2010/12/16 Nachos Project Speaker: Sheng-We Cheng //6 Agenda Motvaton User Programs n Nachos Related Nachos Code for User Programs Project Assgnment Bonus Submsson Agenda Motvaton User Programs n Nachos Related Nachos

More information

Priority queues and heaps Professors Clark F. Olson and Carol Zander

Priority queues and heaps Professors Clark F. Olson and Carol Zander Prorty queues and eaps Professors Clark F. Olson and Carol Zander Prorty queues A common abstract data type (ADT) n computer scence s te prorty queue. As you mgt expect from te name, eac tem n te prorty

More information

Sorting. Sorting. Why Sort? Consistent Ordering

Sorting. Sorting. Why Sort? Consistent Ordering Sortng CSE 6 Data Structures Unt 15 Readng: Sectons.1-. Bubble and Insert sort,.5 Heap sort, Secton..6 Radx sort, Secton.6 Mergesort, Secton. Qucksort, Secton.8 Lower bound Sortng Input an array A of data

More information

such that is accepted of states in , where Finite Automata Lecture 2-1: Regular Languages be an FA. A string is the transition function,

such that is accepted of states in , where Finite Automata Lecture 2-1: Regular Languages be an FA. A string is the transition function, * Lecture - Regular Languages S Lecture - Fnte Automata where A fnte automaton s a -tuple s a fnte set called the states s a fnte set called the alphabet s the transton functon s the ntal state s the set

More information

Load Balancing for Hex-Cell Interconnection Network

Load Balancing for Hex-Cell Interconnection Network Int. J. Communcatons, Network and System Scences,,, - Publshed Onlne Aprl n ScRes. http://www.scrp.org/journal/jcns http://dx.do.org/./jcns.. Load Balancng for Hex-Cell Interconnecton Network Saher Manaseer,

More information

CS221: Algorithms and Data Structures. Priority Queues and Heaps. Alan J. Hu (Borrowing slides from Steve Wolfman)

CS221: Algorithms and Data Structures. Priority Queues and Heaps. Alan J. Hu (Borrowing slides from Steve Wolfman) CS: Algorthms and Data Structures Prorty Queues and Heaps Alan J. Hu (Borrowng sldes from Steve Wolfman) Learnng Goals After ths unt, you should be able to: Provde examples of approprate applcatons for

More information

Esc101 Lecture 1 st April, 2008 Generating Permutation

Esc101 Lecture 1 st April, 2008 Generating Permutation Esc101 Lecture 1 Aprl, 2008 Generatng Permutaton In ths class we wll look at a problem to wrte a program that takes as nput 1,2,...,N and prnts out all possble permutatons of the numbers 1,2,...,N. For

More information

High level vs Low Level. What is a Computer Program? What does gcc do for you? Program = Instructions + Data. Basic Computer Organization

High level vs Low Level. What is a Computer Program? What does gcc do for you? Program = Instructions + Data. Basic Computer Organization What s a Computer Program? Descrpton of algorthms and data structures to acheve a specfc ojectve Could e done n any language, even a natural language lke Englsh Programmng language: A Standard notaton

More information

CS 534: Computer Vision Model Fitting

CS 534: Computer Vision Model Fitting CS 534: Computer Vson Model Fttng Sprng 004 Ahmed Elgammal Dept of Computer Scence CS 534 Model Fttng - 1 Outlnes Model fttng s mportant Least-squares fttng Maxmum lkelhood estmaton MAP estmaton Robust

More information

R s s f. m y s. SPH3UW Unit 7.3 Spherical Concave Mirrors Page 1 of 12. Notes

R s s f. m y s. SPH3UW Unit 7.3 Spherical Concave Mirrors Page 1 of 12. Notes SPH3UW Unt 7.3 Sphercal Concave Mrrors Page 1 of 1 Notes Physcs Tool box Concave Mrror If the reflectng surface takes place on the nner surface of the sphercal shape so that the centre of the mrror bulges

More information

A SYSTOLIC APPROACH TO LOOP PARTITIONING AND MAPPING INTO FIXED SIZE DISTRIBUTED MEMORY ARCHITECTURES

A SYSTOLIC APPROACH TO LOOP PARTITIONING AND MAPPING INTO FIXED SIZE DISTRIBUTED MEMORY ARCHITECTURES A SYSOLIC APPROACH O LOOP PARIIONING AND MAPPING INO FIXED SIZE DISRIBUED MEMORY ARCHIECURES Ioanns Drosts, Nektaros Kozrs, George Papakonstantnou and Panayots sanakas Natonal echncal Unversty of Athens

More information

GATE-2007 COMPUTER SCIENCE AND ENGINEERING

GATE-2007 COMPUTER SCIENCE AND ENGINEERING GATE-2007 COMPUTER SCIENCE AND ENGINEERING SOLUTIONS TO SOME OF THE PROBLEMS SOLUTIONS WORTH 87 MARKS ARE GIVEN BELOW TOPICS THEORY OF COMPUTATION LANGUAGE PROCESSORS DESIGN AND ANALYSIS OF ALGORITHMS

More information

Private Information Retrieval (PIR)

Private Information Retrieval (PIR) 2 Levente Buttyán Problem formulaton Alce wants to obtan nformaton from a database, but she does not want the database to learn whch nformaton she wanted e.g., Alce s an nvestor queryng a stock-market

More information

Lobachevsky State University of Nizhni Novgorod. Polyhedron. Quick Start Guide

Lobachevsky State University of Nizhni Novgorod. Polyhedron. Quick Start Guide Lobachevsky State Unversty of Nzhn Novgorod Polyhedron Quck Start Gude Nzhn Novgorod 2016 Contents Specfcaton of Polyhedron software... 3 Theoretcal background... 4 1. Interface of Polyhedron... 6 1.1.

More information

Module Management Tool in Software Development Organizations

Module Management Tool in Software Development Organizations Journal of Computer Scence (5): 8-, 7 ISSN 59-66 7 Scence Publcatons Management Tool n Software Development Organzatons Ahmad A. Al-Rababah and Mohammad A. Al-Rababah Faculty of IT, Al-Ahlyyah Amman Unversty,

More information

Real-Time Guarantees. Traffic Characteristics. Flow Control

Real-Time Guarantees. Traffic Characteristics. Flow Control Real-Tme Guarantees Requrements on RT communcaton protocols: delay (response s) small jtter small throughput hgh error detecton at recever (and sender) small error detecton latency no thrashng under peak

More information

News. Recap: While Loop Example. Reading. Recap: Do Loop Example. Recap: For Loop Example

News. Recap: While Loop Example. Reading. Recap: Do Loop Example. Recap: For Loop Example Unversty of Brtsh Columba CPSC, Intro to Computaton Jan-Apr Tamara Munzner News Assgnment correctons to ASCIIArtste.java posted defntely read WebCT bboards Arrays Lecture, Tue Feb based on sldes by Kurt

More information

Some material adapted from Mohamed Younis, UMBC CMSC 611 Spr 2003 course slides Some material adapted from Hennessy & Patterson / 2003 Elsevier

Some material adapted from Mohamed Younis, UMBC CMSC 611 Spr 2003 course slides Some material adapted from Hennessy & Patterson / 2003 Elsevier Some materal adapted from Mohamed Youns, UMBC CMSC 611 Spr 2003 course sldes Some materal adapted from Hennessy & Patterson / 2003 Elsever Scence Performance = 1 Executon tme Speedup = Performance (B)

More information

CHAPTER 2 PROPOSED IMPROVED PARTICLE SWARM OPTIMIZATION

CHAPTER 2 PROPOSED IMPROVED PARTICLE SWARM OPTIMIZATION 24 CHAPTER 2 PROPOSED IMPROVED PARTICLE SWARM OPTIMIZATION The present chapter proposes an IPSO approach for multprocessor task schedulng problem wth two classfcatons, namely, statc ndependent tasks and

More information

If you miss a key. Chapter 6: Demand Paging Source:

If you miss a key. Chapter 6: Demand Paging Source: ADRIAN PERRIG & TORSTEN HOEFLER ( -6- ) Networks and Operatng Systems Chapter 6: Demand Pagng Source: http://redmne.replcant.us/projects/replcant/wk/samsunggalaxybackdoor If you mss a key after yesterday

More information

Real-time Scheduling

Real-time Scheduling Real-tme Schedulng COE718: Embedded System Desgn http://www.ee.ryerson.ca/~courses/coe718/ Dr. Gul N. Khan http://www.ee.ryerson.ca/~gnkhan Electrcal and Computer Engneerng Ryerson Unversty Overvew RTX

More information

Array transposition in CUDA shared memory

Array transposition in CUDA shared memory Array transposton n CUDA shared memory Mke Gles February 19, 2014 Abstract Ths short note s nspred by some code wrtten by Jeremy Appleyard for the transposton of data through shared memory. I had some

More information

Oracle Database: SQL and PL/SQL Fundamentals Certification Course

Oracle Database: SQL and PL/SQL Fundamentals Certification Course Oracle Database: SQL and PL/SQL Fundamentals Certfcaton Course 1 Duraton: 5 Days (30 hours) What you wll learn: Ths Oracle Database: SQL and PL/SQL Fundamentals tranng delvers the fundamentals of SQL and

More information

Brave New World Pseudocode Reference

Brave New World Pseudocode Reference Brave New World Pseudocode Reference Pseudocode s a way to descrbe how to accomplsh tasks usng basc steps lke those a computer mght perform. In ths week s lab, you'll see how a form of pseudocode can be

More information

Kent State University CS 4/ Design and Analysis of Algorithms. Dept. of Math & Computer Science LECT-16. Dynamic Programming

Kent State University CS 4/ Design and Analysis of Algorithms. Dept. of Math & Computer Science LECT-16. Dynamic Programming CS 4/560 Desgn and Analyss of Algorthms Kent State Unversty Dept. of Math & Computer Scence LECT-6 Dynamc Programmng 2 Dynamc Programmng Dynamc Programmng, lke the dvde-and-conquer method, solves problems

More information

Machine Learning: Algorithms and Applications

Machine Learning: Algorithms and Applications 14/05/1 Machne Learnng: Algorthms and Applcatons Florano Zn Free Unversty of Bozen-Bolzano Faculty of Computer Scence Academc Year 011-01 Lecture 10: 14 May 01 Unsupervsed Learnng cont Sldes courtesy of

More information

Sorting and Algorithm Analysis

Sorting and Algorithm Analysis Unt 7 Sortng and Algorthm Analyss Computer Scence S-111 Harvard Unversty Davd G. Sullvan, Ph.D. Sortng an Array of Integers 0 1 2 n-2 n-1 arr 15 7 36 40 12 Ground rules: sort the values n ncreasng order

More information

Greedy Technique - Definition

Greedy Technique - Definition Greedy Technque Greedy Technque - Defnton The greedy method s a general algorthm desgn paradgm, bult on the follong elements: confguratons: dfferent choces, collectons, or values to fnd objectve functon:

More information

SLAM Summer School 2006 Practical 2: SLAM using Monocular Vision

SLAM Summer School 2006 Practical 2: SLAM using Monocular Vision SLAM Summer School 2006 Practcal 2: SLAM usng Monocular Vson Javer Cvera, Unversty of Zaragoza Andrew J. Davson, Imperal College London J.M.M Montel, Unversty of Zaragoza. josemar@unzar.es, jcvera@unzar.es,

More information

4/11/17. Agenda. Princeton University Computer Science 217: Introduction to Programming Systems. Goals of this Lecture. Storage Management.

4/11/17. Agenda. Princeton University Computer Science 217: Introduction to Programming Systems. Goals of this Lecture. Storage Management. //7 Prnceton Unversty Computer Scence 7: Introducton to Programmng Systems Goals of ths Lecture Storage Management Help you learn about: Localty and cachng Typcal storage herarchy Vrtual memory How the

More information

NUMERICAL SOLVING OPTIMAL CONTROL PROBLEMS BY THE METHOD OF VARIATIONS

NUMERICAL SOLVING OPTIMAL CONTROL PROBLEMS BY THE METHOD OF VARIATIONS ARPN Journal of Engneerng and Appled Scences 006-017 Asan Research Publshng Network (ARPN). All rghts reserved. NUMERICAL SOLVING OPTIMAL CONTROL PROBLEMS BY THE METHOD OF VARIATIONS Igor Grgoryev, Svetlana

More information

Lecture 7 Real Time Task Scheduling. Forrest Brewer

Lecture 7 Real Time Task Scheduling. Forrest Brewer Lecture 7 Real Tme Task Schedulng Forrest Brewer Real Tme ANSI defnes real tme as A Real tme process s a process whch delvers the results of processng n a gven tme span A data may requre processng at a

More information

On Correctness of Nonserializable Executions

On Correctness of Nonserializable Executions Journal of Computer and System Scences 56, 688 (1998) Artcle No. SS971536 On Correctness of Nonseralzable Executons Rajeev Rastog,* Sharad Mehrotra, - Yur Bretbart, [,1 Henry F. Korth,* and Av Slberschatz*

More information

CS240: Programming in C. Lecture 12: Polymorphic Sorting

CS240: Programming in C. Lecture 12: Polymorphic Sorting CS240: Programmng n C ecture 12: Polymorphc Sortng Sortng Gven a collecton of tems and a total order over them, sort the collecton under ths order. Total order: every tem s ordered wth respect to every

More information

ADRIAN PERRIG & TORSTEN HOEFLER ( -6- ) Networks and Operatng Systems Chapter 6: Demand Pagng Page Table Structures Page table structures Page table structures Problem: smple lnear table s too bg Problem:

More information

More on Sorting: Quick Sort and Heap Sort

More on Sorting: Quick Sort and Heap Sort More on Sortng: Quck Sort and Heap Sort Antono Carzanga Faculty of Informatcs Unversty of Lugano October 12, 2007 c 2006 Antono Carzanga 1 Another dvde-and-conuer sortng algorthm The heap Heap sort Outlne

More information

Hermite Splines in Lie Groups as Products of Geodesics

Hermite Splines in Lie Groups as Products of Geodesics Hermte Splnes n Le Groups as Products of Geodescs Ethan Eade Updated May 28, 2017 1 Introducton 1.1 Goal Ths document defnes a curve n the Le group G parametrzed by tme and by structural parameters n the

More information

ETAtouch RESTful Webservices

ETAtouch RESTful Webservices ETAtouch RESTful Webservces Verson 1.1 November 8, 2012 Contents 1 Introducton 3 2 The resource /user/ap 6 2.1 HTTP GET................................... 6 2.2 HTTP POST..................................

More information

Announcements. Supervised Learning

Announcements. Supervised Learning Announcements See Chapter 5 of Duda, Hart, and Stork. Tutoral by Burge lnked to on web page. Supervsed Learnng Classfcaton wth labeled eamples. Images vectors n hgh-d space. Supervsed Learnng Labeled eamples

More information

Constructing Minimum Connected Dominating Set: Algorithmic approach

Constructing Minimum Connected Dominating Set: Algorithmic approach Constructng Mnmum Connected Domnatng Set: Algorthmc approach G.N. Puroht and Usha Sharma Centre for Mathematcal Scences, Banasthal Unversty, Rajasthan 304022 usha.sharma94@yahoo.com Abstract: Connected

More information

A mathematical programming approach to the analysis, design and scheduling of offshore oilfields

A mathematical programming approach to the analysis, design and scheduling of offshore oilfields 17 th European Symposum on Computer Aded Process Engneerng ESCAPE17 V. Plesu and P.S. Agach (Edtors) 2007 Elsever B.V. All rghts reserved. 1 A mathematcal programmng approach to the analyss, desgn and

More information

CHAPTER 10: ALGORITHM DESIGN TECHNIQUES

CHAPTER 10: ALGORITHM DESIGN TECHNIQUES CHAPTER 10: ALGORITHM DESIGN TECHNIQUES So far, we have been concerned wth the effcent mplementaton of algorthms. We have seen that when an algorthm s gven, the actual data structures need not be specfed.

More information

Transaction-Consistent Global Checkpoints in a Distributed Database System

Transaction-Consistent Global Checkpoints in a Distributed Database System Proceedngs of the World Congress on Engneerng 2008 Vol I Transacton-Consstent Global Checkponts n a Dstrbuted Database System Jang Wu, D. Manvannan and Bhavan Thurasngham Abstract Checkpontng and rollback

More information

CHAPTER 2 DECOMPOSITION OF GRAPHS

CHAPTER 2 DECOMPOSITION OF GRAPHS CHAPTER DECOMPOSITION OF GRAPHS. INTRODUCTION A graph H s called a Supersubdvson of a graph G f H s obtaned from G by replacng every edge uv of G by a bpartte graph,m (m may vary for each edge by dentfyng

More information

#4 Inverted page table. The need for more bookkeeping. Inverted page table architecture. Today. Our Small Quiz

#4 Inverted page table. The need for more bookkeeping. Inverted page table architecture. Today. Our Small Quiz ADRIAN PERRIG & TORSTEN HOEFLER Networks and Operatng Systems (-6-) Chapter 6: Demand Pagng http://redmne.replcant.us/projects/replcant/wk/samsunggalaxybackdoor () # Inverted table One system-wde table

More information

Reclaiming the Brain: Useful OpenFlow Functions in the Data Plane

Reclaiming the Brain: Useful OpenFlow Functions in the Data Plane Reclamng the Bran: Useful OpenFlow Functons n the Data Plane Lron chff (Tel Avv Un, Israel) Mchael Borokhovch (UT Austn, Unted tates) tefan chmd (TU Berln & T-Labs, Germany) My Talk n One lde eparaton

More information

All-Pairs Shortest Paths. Approximate All-Pairs shortest paths Approximate distance oracles Spanners and Emulators. Uri Zwick Tel Aviv University

All-Pairs Shortest Paths. Approximate All-Pairs shortest paths Approximate distance oracles Spanners and Emulators. Uri Zwick Tel Aviv University Approxmate All-Pars shortest paths Approxmate dstance oracles Spanners and Emulators Ur Zwck Tel Avv Unversty Summer School on Shortest Paths (PATH05 DIKU, Unversty of Copenhagen All-Pars Shortest Paths

More information

3. CR parameters and Multi-Objective Fitness Function

3. CR parameters and Multi-Objective Fitness Function 3 CR parameters and Mult-objectve Ftness Functon 41 3. CR parameters and Mult-Objectve Ftness Functon 3.1. Introducton Cogntve rados dynamcally confgure the wreless communcaton system, whch takes beneft

More information

Solving two-person zero-sum game by Matlab

Solving two-person zero-sum game by Matlab Appled Mechancs and Materals Onlne: 2011-02-02 ISSN: 1662-7482, Vols. 50-51, pp 262-265 do:10.4028/www.scentfc.net/amm.50-51.262 2011 Trans Tech Publcatons, Swtzerland Solvng two-person zero-sum game by

More information

Dijkstra s Single Source Algorithm. All-Pairs Shortest Paths. Dynamic Programming Solution. Performance. Decision Sequence.

Dijkstra s Single Source Algorithm. All-Pairs Shortest Paths. Dynamic Programming Solution. Performance. Decision Sequence. All-Pars Shortest Paths Gven an n-vertex drected weghted graph, fnd a shortest path from vertex to vertex for each of the n vertex pars (,). Dstra s Sngle Source Algorthm Use Dstra s algorthm n tmes, once

More information

Chapter 1. Introduction

Chapter 1. Introduction Chapter 1 Introducton 1.1 Parallel Processng There s a contnual demand for greater computatonal speed from a computer system than s currently possble (.e. sequental systems). Areas need great computatonal

More information

Outline. Self-Organizing Maps (SOM) US Hebbian Learning, Cntd. The learning rule is Hebbian like:

Outline. Self-Organizing Maps (SOM) US Hebbian Learning, Cntd. The learning rule is Hebbian like: Self-Organzng Maps (SOM) Turgay İBRİKÇİ, PhD. Outlne Introducton Structures of SOM SOM Archtecture Neghborhoods SOM Algorthm Examples Summary 1 2 Unsupervsed Hebban Learnng US Hebban Learnng, Cntd 3 A

More information

Introduction to Programming. Lecture 13: Container data structures. Container data structures. Topics for this lecture. A basic issue with containers

Introduction to Programming. Lecture 13: Container data structures. Container data structures. Topics for this lecture. A basic issue with containers 1 2 Introducton to Programmng Bertrand Meyer Lecture 13: Contaner data structures Last revsed 1 December 2003 Topcs for ths lecture 3 Contaner data structures 4 Contaners and genercty Contan other objects

More information

Summarizing Data using Bottom-k Sketches

Summarizing Data using Bottom-k Sketches Summarzng Data usng Bottom-k Sketches Edth Cohen AT&T Labs Research 8 Park Avenue Florham Park, NJ 7932, USA edth@research.att.com Ham Kaplan School of Computer Scence Tel Avv Unversty Tel Avv, Israel

More information

Intro. Iterators. 1. Access

Intro. Iterators. 1. Access Intro Ths mornng I d lke to talk a lttle bt about s and s. We wll start out wth smlartes and dfferences, then we wll see how to draw them n envronment dagrams, and we wll fnsh wth some examples. Happy

More information

Lecture 3: Computer Arithmetic: Multiplication and Division

Lecture 3: Computer Arithmetic: Multiplication and Division 8-447 Lecture 3: Computer Arthmetc: Multplcaton and Dvson James C. Hoe Dept of ECE, CMU January 26, 29 S 9 L3- Announcements: Handout survey due Lab partner?? Read P&H Ch 3 Read IEEE 754-985 Handouts:

More information

K-means and Hierarchical Clustering

K-means and Hierarchical Clustering Note to other teachers and users of these sldes. Andrew would be delghted f you found ths source materal useful n gvng your own lectures. Feel free to use these sldes verbatm, or to modfy them to ft your

More information

Computation of a Minimum Average Distance Tree on Permutation Graphs*

Computation of a Minimum Average Distance Tree on Permutation Graphs* Annals of Pure and Appled Mathematcs Vol, No, 0, 74-85 ISSN: 79-087X (P), 79-0888(onlne) Publshed on 8 December 0 wwwresearchmathscorg Annals of Computaton of a Mnmum Average Dstance Tree on Permutaton

More information

Math Homotopy Theory Additional notes

Math Homotopy Theory Additional notes Math 527 - Homotopy Theory Addtonal notes Martn Frankland February 4, 2013 The category Top s not Cartesan closed. problem. In these notes, we explan how to remedy that 1 Compactly generated spaces Ths

More information

Cluster Analysis of Electrical Behavior

Cluster Analysis of Electrical Behavior Journal of Computer and Communcatons, 205, 3, 88-93 Publshed Onlne May 205 n ScRes. http://www.scrp.org/ournal/cc http://dx.do.org/0.4236/cc.205.350 Cluster Analyss of Electrcal Behavor Ln Lu Ln Lu, School

More information

Introduction. Leslie Lamports Time, Clocks & the Ordering of Events in a Distributed System. Overview. Introduction Concepts: Time

Introduction. Leslie Lamports Time, Clocks & the Ordering of Events in a Distributed System. Overview. Introduction Concepts: Time Lesle Laports e, locks & the Orderng of Events n a Dstrbuted Syste Joseph Sprng Departent of oputer Scence Dstrbuted Systes and Securty Overvew Introducton he artal Orderng Logcal locks Orderng the Events

More information