-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcombined_data.csv
We can't make this file beautiful and searchable because it's too large.
3776 lines (3776 loc) · 872 KB
/
combined_data.csv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Question,Answer
how does randomised algorithm work,the algorithm typically uses uniformly random bits as an auxiliary input to guide its behavior in the hope of achieving good performance in the average case over all possible choices of random bits
what do you mean by bestfirst search,bestfirst search is a search algorithm which explores a graph by expanding the most promising node chosen according to a specified rule
how do you explain a daemon,daemon disk and execution monitor is a process that runs in the background without users interaction they usually start at the booting time and terminate when the system is shut down
what is phonetic algorithm,a phonetic algorithm is an algorithm for indexing of words by their pronunciation
what do you mean by uniform costsearch,a tree search that finds the lowestcost route where costs vary
what is soundex,soundex is a phonetic algorithm for indexing names by sound
define a rightskewed binary tree,a rightskewed binary tree is a tree which has only right child nodes
difference between abstract data type data type and data structure,an abstract data type is the specification of the data type which specifies the logical and mathematical model of the data typea data type is the implementation of an abstract data type data structure refers to the collection of computer variables that are connected in some specific mannerie data type has its root in the abstract data type and a data structure comprises a set of computer variables of same or different data types
define root,this is the unique node in the tree to which further subtrees are attached
what do you mean by point in polygon algorithms,find the nearest point or points to a query point
use of algorithms in computer science,functional programming and logic programming
define dynamic time wrapping,measure similarity between two sequences which may vary in time or speed
what are the issues that hamper the efficiency in sorting a file,the issues are length of time required by the programmer in coding a particular sorting programamount of machine time necessary for running the particular programthe amount of space necessary for the particular program
how do you explain a semaphore,a semaphore is a hardware or a software tag variable whose value indicates the status of a common resource its purpose is to lock the common resource being used a process which needs the resource will check the semaphore to determine the status of the resource followed by the decision for proceeding in multitasking operating systems the activities are synchronized by using the semaphore techniques
how do you explain children of tree,children of a node the roots of the subtrees of a node are called the children of the node in figure 7 and 3 are children of node 1
what is match rating approach,match rating approach mra is a phonetic algorithm developed by western airlines in 1977 for the indexation and comparison of homophonous names
what is the worst case complexity of binary search,the worst case complexity of binary search is o1
how do you explain longest common subsequence problem,find the longest subsequence common to all sequences in a set of sequences
define an acyclic graph,a simple diagram which does not have any cycles is called an acyclic graph
what is cubic interpolation,in numerical analysis a cubic hermite spline or cubic hermite interpolator is a spline where each piece is a thirddegree polynomial specified in hermite form1 that is by its values and first derivatives at the end points of the corresponding domain interval
what do you mean by string metrics,compute a similarity or dissimilarity distance score between two pairs of text strings
define data structures,data structures is defined as the way of organizing all data items that consider not only the elements stored but also stores the relationship between the elements
what is cpu utilization,percentage of time that the cpu is doing useful work ie not being idle 100 is perfect
how do you explain path based strong component algorithm,in graph theory the strongly connected components of a directed graph may be found using an algorithm that uses depthfirst search in combination with two stacks one to keep track of the vertices in the current component and the second to keep track of the current search path
what do you mean by selection algorithm,in computer science a selection algorithm is an algorithm for finding the kth smallest number in a list or array such a number is called the kth order statistic
how do you explain the best page size when designing an operating system,the best paging size varies from system to system so there is no single best when it comes to page size there are different factors to consider in order to come up with a suitable page size such as page table paging time and its effect on the overall efficiency of the operating system
what do you mean by system stack,each process has one or more lifo stacks associated with it used to store parameters and calling addresses for procedure and system callsprocess control block pcb info needed by the os to control processes
define modular square root,computing square roots modulo a prime number
what is caching,caching is the processing of utilizing a region of fast memory for a limited data and process a cache memory is usually much efficient because of its high access speed
what are the applications of priority queues,the selection problemevent simulation
define recursive algorithm,a recursive algorithm is one that invokes or makes reference to itself repeatedly until a certain condition
what do you mean by the data structures used to perform recursion,stack because of its lifo last in first out property it remembers its caller so knows whom to return when the function has to return recursion makes use of system stack for storing the return addresses of the function calls every recursive function has its equivalent iterative nonrecursive function even when such equivalent iterative procedures are written explicit stack is to be used
what is ruperts algorithm,create quality delaunay triangulations
what do you mean by nearest neighbour algorithm,the nearest neighbour algorithm was one of the first algorithms used to determine a solution to the travelling salesman problem
how are server systems classified,server systems can be classified as either computerserver systems or file server systems in the first case an interface is made available for clients to send requests to perform an action in the second case provisions are available for clients to create access and update files
what is process migration,it is the transfer of sufficient amount of the state of process from one machine to the target machine
define thrashing,it is a phenomenon in virtual memory schemes when the processor spends most of its time swapping pages rather than executing instructions this is due to an inordinate number of page faults
define multiplication algorithms,fast multiplication of two numbers
briefly explain fcfs,fcfs is short for firstcome firstserved and is one type of scheduling algorithm in this scheme the process that requests the cpu first is allocated the cpu first implementation is managed by a fifo queue
what do you mean by a directed graph,a graph in which every edge is directed is called a directed graph
what do you mean by response time,this is the time elapsed from when a process is submitted until a useful output is obtained
how do you explain chudnovsky algorithm,a fast method for calculating the digits of p
what do you mean by dinics algorithm,dinicsalgorithm is a strongly polynomial algorithm for computing the maximum flow in a flow network
how do you explain root partition,root partition is where the operating system kernel is located it also contains other potentially important system files that are mounted during boot time
what do you mean by a cycle or a circuit,a path which originates and ends in the same node is called a cycle or circuit
what is algorithm design,algorithm design refers to a method or mathematical process for problemsolving and engineering algorithm
how do you explain dynamic time wrapping,measure similarity between two sequences which may vary in time or speed
what is a socket,a socket is used to make connection between two applications endpoints of the connection are called socket
define the order of growth of the bubble sort algorithm,the bubble sort algorithm has a quadratic order of growth
what do you mean by topological sort,a topological sort or topological ordering of a directed graph is a linear ordering of its vertices such that for every directed edge uv from vertex u to vertex v u comes before v in the ordering
what is polygon triangularisation,decompose a polygon into a set of triangles
what is children of tree,children of a node the roots of the subtrees of a node are called the children of the node in figure 7 and 3 are children of node 1
define nonlinear data structures,nonlinear data structures are data structures that dont have a linear relationship between its adjacent elements but have a hierarchical relationship between the elements eg trees and graphs
explain the main purpose of an operating system,operating systems exist for two main purposes one is that it is designed to make sure a computer system performs well by managing its computational activities another is that it provides an environment for the development and execution of programs
how do you explain binary search algorithm,locates an item in a sorted sequence
what is cantorzassenhaus algorithm,factor polynomials over finite fields
define degree of a node,degree of a node the number of subtrees of a node is called the degree of a node
how do you explain topological sort,finds linear order of nodes eg jobs based on their dependencies
what is binary search algorithm,locates an item in a sorted sequence
what do you mean by rich salz wildcat,a widely used opensource recursive algorithm
what do you mean by double hashing,double hashing is an open addressing collision resolution strategy in which fiihash2x this formula says that we apply a second hash function to x and probe at a distance hash2x 2hash2x and so on a function such as hash2xrxmodr with r a prime smaller than tablesize
what is rounding functions,the principal nth root of a positive real number a is the positive real solution of the equation
how do you classify algorithm by design paradigm,is a generic method or approach which underlies the design of a class of algorithms
define user data,modifiable part of user space may include program data user stack area and programs that may be modified
what is sweep line algorithm,plane sweep algorithm is an algorithmic paradigm that uses a conceptual sweep line or sweep surface to solve various problems in euclidean space
what is the worst case performance of selection sort,the worst case performance of selection sort is on2
define division algorithms,for computing quotient andor remainder of two numbers
how do you explain smp,to achieve maximum efficiency and reliability a mode of operation known as symmetric multiprocessing is used in essence with smp any process or threads can be assigned to any processor
define kirkpatrickseidel algorithm,is an algorithm for computing the convex hull of a set of points in the plane
what are voronoi diagrams,geometric dual of delaunay triangulation
define fragmentation,fragmentation is a phenomenon of memory wastage it reduces the capacity and performance because space is used inefficiently
what do you mean by nth root algorithm,the principal root of a positive real number a is the positive real solution of the equation
what is linear interpolation,a method of curve fitting using linear polynomials
what is nearest neighbour algorithm,the nearest neighbour algorithm was one of the first algorithms used to determine a solution to the travelling salesman problem
how do you explain the best case performance of selection sort,the best case performance of selection sort is on2
how do you explain fortunes algorithm,to create voronoi diagram
what do you mean by the worst case performance of selection sort,the worst case performance of selection sort is on2
state the main difference between logical from physical address space,logical address refers to the address that is generated by the cpu on the other hand physical address refers to the address that is seen by the memory unit
how do you explain quick select,quickselect is a selection algorithm to find the kth smallest element in an unordered list
what do you mean by substring search,stringsearching algorithms sometimes called stringmatching algorithms are an important class of string algorithms that try to find a place where one or several strings also called patterns are found within a larger string or text
how do you explain best case performance of bubble sort algorithm,the best case performance of bubble sort algorithm is on
what do you mean by tree sort,build binary tree then traverse it to create sorted list
how do you explain euler method,eulers method is a numerical method to solve first order first degree differential equation with a given initial value it is the most basic explicit method for numerical integration of ordinary differential equations and is the simplest rungekutta method
list out the disadvantages of using a linked list,searching a particular element in a list is difficult and time consuminga linked list will use more storage space than an array to store the same number of elements
define a deque,deque doubleended queue is another form of a queue in which insertions and deletions are made at both the front and rear ends of the queue there are two variations of a deque namely input restricted deque and output restricted deque the input restricted deque allows insertion at one end it can be either front or rear only the output restricted deque allows deletion at one end it can be either front or rear only
what is maximal cliques,a maximal clique is a clique that cannot be extended by including one more adjacent vertex
define forest,a tree may be defined as a forest in which only a single node root has no predecessors any forest consists of a collection of trees
what do you mean by tarjans offline lowest common ancestors algorithm,compute lowest common ancestors for pairs of nodes in a tree
explain process,a process is a program that is running and under execution on batch systems it is called as a job while on time sharing systems it is called as a task
define exhaustive search,this is the naive method of trying every possible solution to see which is best
what do you mean by wait time,this is the time that a process spends for its turn to get executed
define an edge,edge a link from the parent to the child node is referred to as edge it is also known as a branch a tree with n nodes has n1 edges
define schreiersims algorithms,computing a base and strong generating set bsgs of a permutation group
define the difference between internal commands and external commands,internal commands are the builtin part of the operating system while external commands are the separate file programs that are stored in a separate folder or directory
define algorithm design pattern,techniques for designing and implementing algorithm designs are also called algorithm design patterns
define a spanning tree,a spanning tree is a tree associated with a network all the nodes of the graph appear on the tree once a minimum spanning tree is a spanning tree organized so that the total edge weight between nodes is minimized
how do you explain edmondsedmondskara algorithm,implementation of fordfulkerson
what do you mean by randomised algorithms,such algorithms make some choices randomly or pseudorandomly they can be very useful in finding approximate solutions for problems
how do you explain tarjans strongly connected componets algorithms,tarjans algorithm is an algorithm in graph theory for finding the strongly connected components of a directed graph
how do you explain the data structures used to perform recursion,stack because of its lifo last in first out property it remembers its caller so knows whom to return when the function has to return recursion makes use of system stack for storing the return addresses of the function calls every recursive function has its equivalent iterative nonrecursive function even when such equivalent iterative procedures are written explicit stack is to be used
what do you mean by graceful degradation,it is the ability to continue providing service proportional to level of hardwaresystems designed for graceful degradation are called fault tolerantif we have several processors connected together then failure of one would not stop the systemthen the entire system runs only 10 slowerthis leads to increased reliability of the system
what do you mean by semaphore,semaphore is a variable whose status reports common resource semaphore is of two types one is binary semaphore and other is counting semaphore
define unrestricted algorithm,an unrestricted algorithm is an algorithm for the computation of a mathematical function that puts no restrictions on the range of the argument or on the precision that may be demanded in the result
how do you explain the worst case scenario for bubble sort and why,the worst situation for bubble sort is when the lists smallest element is in the last position in this situation the smallest element will move down one place on each pass through the list meaning that the sort will need to make the maximum number of passes through the list namely n 1
what do you mean by addition chain exponentiation,the classic ways to round numbers
give an example of rabbit problem in bubble sort,array 6 1 2 3 4 5 is almost sorted but it takes on iterations to sort it element 6 is a rabbit
define pollards kangaroo algorithm,an algorithm for solving the discrete logarithm problem
define the best case efficiency of binary search,the best case efficiency of binary search is o1
how do you explain toddcoxeter algorithm,procedure for generating cosets
define the difference between logical address space and physical address space,logical address space specifies the address that is generated by cpu on the other hand physical address space specifies the address that is seen by the memory unit
what are the disadvantages of linear list,we cannot reach any of the nodes that precede node p if a list is traversed the external pointer to the list must be persevered in order to reference the list again
define primary data structures,primary data structures are the basic data structures that directly operate upon the machine instructions all the basic constants integers floatingpoint numbers character constants string constants and pointers are considered as primary data structures
define splay tree,a splay tree is a binary search tree in which restructuring is done using a scheme called splay the splay is a heuristic method which moves a given vertex v to the root of the splay tree using a sequence of rotations
how do you explain load sharing,processes are not assigned to a particular processor a global queue of threads is maintained each processor when idle selects a thread from this queue note that load balancing refers to a scheme where work is allocated to processors on a more permanent basis
how do you explain depth of a tree,depth of a tree the maximum number of levels in a tree is called the depth of a tree in other words depth of a tree is one more than maximum level of the tree the depth of a tree in above figure is 4
what is a spanning tree,a spanning tree is a tree associated with a network all the nodes of the graph appear on the tree once a minimum spanning tree is a spanning tree organized so that the total edge weight between nodes is minimized
how do you explain introselect,introselect short for introspective selection is a selection algorithm that is a hybrid of quickselect and median of medians which has fast average performance and optimal worstcase
what is cycle stealing,we encounter cycle stealing in the context of direct memory access dma either the dma controller can use the data bus when the cpu does not need it or it may force the cpu to temporarily suspend operation the latter technique is called cycle stealing note that cycle stealing can be done only at specific break points in an instruction cycle
binary searches can be done on an arrayyesno,yes
what do you mean by ftdisk,it is a fault tolerance disk driver for windows nt
how do you explain the purpose of an io status information,io status information provides information about which io devices are to be allocated for a particular process it also shows which files are opened and other io device state
define preemptive multitasking,preemptive multitasking allows an operating system to switch between software programs this in turn allows multiple programs to run without necessarily taking complete control over the processor and resulting in system crashes
define fragmentation tell about different types of fragmentation,when many of free blocks are too small to satisfy any request then fragmentation occurs external fragmentation and internal fragmentation are two types of fragmentation external fragmentation happens when a dynamic memory allocation algorithm allocates some memory and a small piece is left over that cannot be effectively used internal fragmentation is the space wasted inside of allocated memory blocks because of restriction on the allowed sizes of allocated blocks
how do you explain schonhagestrassen algorithm,the schnhagestrassen algorithm is an asymptotically fast multiplication algorithm for large integers
define user data,modifiable part of user space may include program data user stack area and programs that may be modified
how do you explain bogosort,it is a highly ineffective sorting algorithm based on the generate and test paradigm the function successively generates permutations of its input until it finds one that is sorted it is not useful for sorting but may be used for educational purposes to contrast it with more efficient algorithms
what is fragmentation,fragmentation is a phenomenon of memory wastage it reduces the capacity and performance because space is used inefficiently
state the rules to be followed during infix to postfix conversions,fully parenthesize the expression starting from left to right during parenthesizing the operators having higher precedence are first parenthesizedmove the operators one by one to their right such that each operator replaces their corresponding right parenthesis the part of the expression which has been converted into postfix is to be treated as single operand once the expression is converted into postfix form remove all parenthesis
what do you mean by microkernel,it is kernel with a limited service that is with some important services runningexample qnxrealtime os
define reversedelete algorithm,the reversedelete algorithm is an algorithm in graph theory used to obtain a minimum spanning tree from a given connected edgeweighted graph
how do you explain exhaustive search,this is the naive method of trying every possible solution to see which is best
list out few of the application of tree datastructure,the manipulation of arithmetic expression symbol table construction syntax analysis
what is nearest neighbour search,the arbitrarily oriented minimum bounding box is the minimum bounding box calculated subject to no constraints as to the orientation of the result
what is user data,modifiable part of user space may include program data user stack area and programs that may be modified
what do you mean by a simple graph,a simple graph is a graph which has not more than one edge between a pair of nodes than such a graph is called a simple graph
what are steps for preorder traversing a binary tree,the steps for preorder traversing a binary tree is as followsvisit the root traverse the left subtreetraverse the right subtree
what do you mean by dedicated processor assignment,provides implicit scheduling defined by assignment of threads to processors for the duration of program execution each program is allocated a set of processors equal in number to the number of threads in the program processors are chosen from the available pool
define warnsdorffs rule,warnsdorfs rule is a heuristic for finding a knights tour
what do you mean by a process,an executing program is known as process there are two types of processesoperating system processesuser processes
how do you explain quick sort algorithm,quicksort sometimes called partitionexchange sort is an on log n efficient sorting algorithm serving as a systematic method for placing the elements of an array in order
what is tarjans strongly connected componets algorithms,tarjans algorithm is an algorithm in graph theory for finding the strongly connected components of a directed graph
what are the disadvantages of circular list,we cant traverse the list backwardif a pointer to a node is given we cannot delete the node
what is the main purpose of an operating system,there are two main purposes of an operating systemit is designed to make sure that a computer system performs well by managing its computational activitiesit provides an environment for the development and execution of programs
what is rr scheduling algorithm,rr roundrobin scheduling algorithm is primarily aimed for timesharing systems a circular queue is a setup in such a way that the cpu scheduler goes around that queue allocating cpu to each process for a time interval of up to around 10 to 100 milliseconds
how do you explain cliques,a clique klik or klk is a subset of vertices of an undirected graph such that every two distinct vertices in the clique are adjacent that is its induced subgraph is complete
define hybrid kernel,it combines the aspect of both monolithic as well as a microkernelexample microsoft nt kernel
what is an edge,edge a link from the parent to the child node is referred to as edge it is also known as a branch a tree with n nodes has n1 edges
explain the concept of reentrancy,it is a useful memorysaving technique for multiprogrammed timesharing systems a reentrant procedure is one in which multiple users can share a single copy of a program during the same period reentrancy has 2 key aspects the program code cannot modify itself and the local data for each user process must be stored separately thus the permanent part is the code and the temporary part is the pointer back to the calling program and local variables used by that program
define a folder in ubuntu,there is no concept of folder in ubuntu everything included in your hardware is a file
what is shell sort,an attempt to improve insertion sort
what is addition chain exponentiation,the classic ways to round numbers
how do you explain an assembler,an assembler acts as a translator for low level language assembly codes written using mnemonic commands are translated by the assembler into machine language
when does the condition rendezvous arise,in message passing it is the condition in which both the sender and receiver are blocked until the message is delivered
what is bubble sort,for each pair of indices swap the items if out of order
what is long term scheduler,long term scheduler determines which programs are admitted to the system for processing it controls the degree of multiprogramming once admitted a job becomes a process
what do you mean by the term percolate up,to insert an element we have to create a hole in the next available heap location inserting an element in the hole would sometimes violate the heap order property so we have to slide down the parent into the hole this strategy is continued until the correct location for the new element is found this general strategy is known as a percolate up the new element is percolated up the heap until the correct location is found
when is a graph said to be weakly connected,when a directedgraph is not strongly connected but the underlying graph is connected then the graph is said to be weakly connected
define cubic interpolation,in numerical analysis a cubic hermite spline or cubic hermite interpolator is a spline where each piece is a thirddegree polynomial specified in hermite form1 that is by its values and first derivatives at the end points of the corresponding domain interval
what do you mean by smp,to achieve maximum efficiency and reliability a mode of operation known as symmetric multiprocessing is used in essence with smp any process or threads can be assigned to any processor
what do you mean by linked list,linked list is one of the fundamental data structures it consists of a sequence of nodes each containing arbitrary data fields and one or two links pointing to the next andor previous nodes a linked list is a selfreferential datatype because it contains a pointer or link to another data of the same type linked lists permit insertion and removal of nodes at any point in the list in constant time but do not allow random access
name two algorithms two find minimum spanning tree,kruskals algorithmprims algorithm
define collision detection,check for the collision or intersection of two given solids
define multitasking,multitasking is the process within an operating system that allows the user to run several applications at the same time however only one application is active at a time for user interaction although some applications can run behind the scene
what do you mean by impact of signed numbers on the memory,sign of the number is the first bit of the storage allocated for that number so you get one bit less for storing the number for example if you are storing an 8bit number without sign the range is 0255 if you decide to store sign you get 7 bits for the number plus one bit for the sign so the range is 128 to 127
how do you explain spanning tree,in the mathematical field of graph theory a spanning tree t of an undirected graph g is a subgraph that is a tree which includes all of the vertices of g with minimum possible number of edges
what do you mean by dynamic time wrapping,measure similarity between two sequences which may vary in time or speed
what is newtonraphson division,an algorithm used for the fast computation of large integer powers of a number
what do you mean by an operating system,the operating system is a software program that facilitates computer hardware to communicate and operate with the computer software it is the most important part of a computer system without it computer is just like a box
what do you mean by the purpose of multitasking operating system,this operating system enables the user to simultaneously execute multiple tasks on a single processor the cpu in this case switches processes at a very fast pace and does it parallel
what is caching,caching is the processing of utilizing a region of fast memory for a limited data and process a cache memory is usually much efficient because of its high access speed
define data structure,a data structure is a way of organizing data that considers not only the items stored but also their relationship to each other advance knowledge about the relationship between data items allows designing of efficient algorithms for the manipulation of data
what is spooling,spooling is normally associated with printing when different applications want to send an output to the printer at the same time spooling takes all of these print jobs into a disk file and queues them accordingly to the printer
how do you explain the concept of reentrancy,it is a very useful memory saving technique that is used for multiprogrammed time sharing systems it provides functionality that multiple users can share a single copy of program during the same period it has two key aspectstthey are the program code cannot modify itselfthe local data for each user process must be stored separately
what is chans algorithm,is an optimal outputsensitive algorithm to compute the convex hull of a set points in 2 or 3dimensional space
how do you explain triangularisation,a triangulation is a subdivision of a planar object into triangles and by extension the subdivision of a higherdimension geometric object into simplices
how do you explain sweep line algorithm,plane sweep algorithm is an algorithmic paradigm that uses a conceptual sweep line or sweep surface to solve various problems in euclidean space
what is kernel,kernel is the core and essential part of computer operating system that provides basic services for all parts of os
how do you explain busy waiting,the repeated execution of a loop of code while waiting for an event to occur is called busywaiting the cpu is not engaged in any real productive activity during this period and the process does not progress toward completion
how do you explain process synchronization,a situation where several processes access and manipulate the same data concurrently and the outcome of the execution depends on the particular order in which the access takes place is called race condition to guard against the race condition we need to ensure that only one process at a time can be manipulating the same data the technique we use for this is called process synchronization
what do you mean by metaphone,an algorithm for indexing words by their sound when pronounced in english
what is thrashing,thrashing occurs when the processor is spending most of its time in swapping pages instead of executing the instructions
what do you mean by lexicographic breadth search,a linear time algorithm for ordering the vertices of a graph
what do you mean by predictive search,binarylike search which factors in magnitude of search term versus the high and low values in the search sometimes called dictionary search or interpolated search
write the importance of hashing,maps key with the corresponding value using hash function hash tables support the efficient addition of new entries and the time spent on searching for the required data is independent of the number of items stored
list out the advantages of using a linked list,it is not necessary to specify the number of elements in a linked list during its declaration linked list can grow and shrink in size depending upon the insertion and deletion that occurs in the list insertions and deletions at any place in a list can be handled easily and efficientlya linked list does not waste any memory space
while implementing the bubble sort algorithm how many comparisons will performed in pass 1,n 1 comparisons
how do you assign an address to an element of a pointer array,we can assign a memory address to an element of a pointer array by using the address operator which is the ampersand in an assignment statement such as ptemployee0 projects2
what are turnaround time and response time,turnaround time is the interval between the submission of a job and its completion response time is the interval between submission of a request and the first response to that request
what is comparison sort,a comparison sort is a type of sorting algorithm that only reads the list elements through a single abstract comparison operation often a less than or equal to operator or a threeway comparison that determines which of two elements should occur first in the final sorted list
how do you explain cache memory,cache memory is random access memory ram that a computer microprocessor can access more quickly than it can access regular ram as the microprocessor processes data it looks first in the cache memory and if it finds the data there from a previous reading of data it does not have to do the more timeconsuming reading of data from larger memory
what is schreiersims algorithms,computing a base and strong generating set bsgs of a permutation group
how do you explain schensted algorithm,constructs a pair of young tableaux from a permutation
how does swapping result in better memory management,during regular intervals that are set by the operating system processes can be copied from main memory to a backing store and then copied back later swapping allows more processes to be run that can fit into memory at one time
define bogosort,it is a highly ineffective sorting algorithm based on the generate and test paradigm the function successively generates permutations of its input until it finds one that is sorted it is not useful for sorting but may be used for educational purposes to contrast it with more efficient algorithms
what is spooling,spooling is a process in which data is temporarily gathered to be used and executed by a device program or the system it is associated with printing when different applications send output to the printer at the same time spooling keeps these all jobs into a disk file and queues them accordingly to the printer
how do you explain the difference between array and stack,stack follows lifo thus the item that is first entered would be the last removedin array the items can be entered or removed in any order basically each member access is done using index no strict order is to be followed here to remove a particular elementarray may be multidiamensional or onediamensional but stack should be onediamensional but both are linear data structure
what is quantum algorithm,the term is usually used for those algorithms which seem inherently quantum
what do you mean by rabinkarp string search algorithms,amortized linear sublinear in most times algorithm for substring search
define rabinkarp string search algorithms,amortized linear sublinear in most times algorithm for substring search
define maxcliquedyn maximum clique algorithm,the maxcliquedyn algorithm is an algorithm for finding a maximum clique in an undirected graph
what is modular square root,computing square roots modulo a prime number
what do you mean by borweins algorithm,an algorithm to calculate the value of 1p
how do you explain smp,smp is short for symmetric multiprocessing and is the most common type of multipleprocessor systems in this system each processor runs an identical copy of the operating system and these copies communicate with one another as needed
give some simple example of algorithm,one of the simplest algorithms is to find the largest number in a list of numbers of random order
what is strongly connected components,in the mathematical theory of directed graphs a graph is said to be strongly connected or diconnected if every vertex is reachable from every other vertex
define the purpose of an io status information,io status information provides information about which io devices are to be allocated for a particular process it also shows which files are opened and other io device state
define graph exploration algorithm,in computer science graph traversal also known as graph search refers to the process of visiting checking andor updating each vertex in a graph such traversals are classified by the order in which the vertices are visited
define modular method,in this method modulus operation is applied on each key this involves dividing the key value by the size of the hash table to obtain the remainder of the division the remainder is considered as the address of the record corresponding to the key value
what do you mean by an idle thread,the special thread a dispatcher will execute when no ready thread is found
how do you explain average case performance of binary search,the average case performance of binary search is olog n
what is incremental heuristic search algorithm,incremental heuristic search algorithms combine both incremental and heuristic search to speed up searches of sequences of similar search problems which is important in domains that are only incompletely known or change dynamically
define meant by strongly connected in a graph,an undirected graph is connected if there is a path from every vertex to every other vertex a directed graph with this property is called strongly connected
what do you mean by the worst case scenario for bubble sort and why,the worst situation for bubble sort is when the lists smallest element is in the last position in this situation the smallest element will move down one place on each pass through the list meaning that the sort will need to make the maximum number of passes through the list namely n 1
what do you mean by disjoint set adt,a collection of nonempty disjoint sets ss1 s2 sk ieeach si is a nonempty set that has no element in common with any other sj in mathematical notation this is sisj each set is identified by a unique element called its representative
define online algorithm,an online algorithm is one that can process its input piecebypiece in a serial fashion ie in the order that the input is fed to the algorithm without having the entire input available from the beginning
define bubble sort,for each pair of indices swap the items if out of order
how do you explain tree sort,build binary tree then traverse it to create sorted list
what is borweins algorithm,an algorithm to calculate the value of 1p
what are steps for in order traversing a binary tree,the steps for in order traversing a binary tree are as follows traverse the left subtreevisit the root traverse the right subtree
what are local and global page replacements,local replacement means that an incoming page is brought in only to the relevant process address space global replacement policy allows any page frame from any process to be replaced the latter is applicable to variable partitions model only
what do you mean by asymmetric clustering,in asymmetric clustering a machine is in a state known as hot standby mode where it does nothing but to monitor the active server that machine takes the active servers role should the server fails
what do you mean by reversedelete algorithm,the reversedelete algorithm is an algorithm in graph theory used to obtain a minimum spanning tree from a given connected edgeweighted graph
define nth root algorithm,the principal root of a positive real number a is the positive real solution of the equation
what is direct access method,direct access method is based on a disk model of a file such that it is viewed as a numbered sequence of blocks or records it allows arbitrary blocks to be read or written direct access is
what do you mean by a priority queue,the priority queue is a data structure in which the intrinsic ordering of the elements numeric or alphabetic determines the result of its basic operation it is of two typesthey are ascending priority queue here smallest item can be removed insertion is arbitrarydescending priority queue here largest item can be removed insertion is arbitrary
what are the reasons for process suspension,swappinginteractive user requesttimingparent process request
how do you define singlylinked list,singly linked lists contain nodes which have a data field as well as a next field which points to the next node in the linked list a singly linked list whose nodes contain two fields an integer value and a link to the next node
define asymmetric clustering,in asymmetric clustering a machine is in a state known as hot standby mode where it does nothing but to monitor the active server that machine takes the active servers role should the server fails
what do you mean by the use of threaded binary tree,in threaded binary tree the null pointers are replaced by some addresses the left pointer of the node points to its predecessor and the right pointer of the node points to its successor
how do you explain preemptive multitasking,preemptive multitasking allows an operating system to switch between software programs this in turn allows multiple programs to run without necessarily taking complete control over the processor and resulting in system crashes
define the purpose of multiprogramming operating system,this acts to be an extension of batch os where main memory can have several jobs at once and they would be executed in a particular order at a particular time
when does trashing occur,thrashing specifies an instance of high paging activity this happens when it is spending more time paging instead of executing
define scsi,scsi small computer systems interface is a type of interface used for computer components such as hard drives optical drives scanners and tape drives it is a competing technology to standard ide integrated drive electronics
what is sorting algorithm,a sorting algorithm is an algorithm that puts elements of a list in a certain order
what is geometric hashing,a method for efficiently finding twodimensional objects represented by discrete points that have undergone an affine transformation
how do you define singlylinked list,singly linked lists contain nodes which have a data field as well as a next field which points to the next node in the linked list a singly linked list whose nodes contain two fields an integer value and a link to the next node
is nonpreemptive scheduling frequently used in a computer why,no it is rarely used for the reasons mentioned as that it can not ensure that each user gets a share of cpu regularly the idle time with this increases reducing the efficiency and overall performance of the system it allows program to run indefinitely which means that other processes have to wait for very long
how do you explain worst case space complexity of bubble sort algorithm,o1 auxiliary
what are the different types of kernel,kernels are basically of two types they are monolithic kernelsin this architecture of kernel all the system services were packaged into a single system module which lead to poor maintainability and huge size of kernel microkernels they follow the modular approach of architecture maintainability became easier with this model as only the concerned module is to be altered and loaded for every function this model also keeps a tab on the ever growing code size of the kernel
define a deadlock,it is a condition where a group of two or more waiting for the resources currently in use by other processes of the same groupin this situation every process is waiting for an event to be triggered by another process of the group since no thread can free up the resource a deadlock occurs and the application hangs
define busy waiting,the repeated execution of a loop of code while waiting for an event to occur is called busywaiting the cpu is not engaged in any real productive activity during this period and the process does not progress toward completion
what do you mean by non comparison sort,the sorting in which there is no comparison with adjacent elements
how do you explain bronkerbosch algorithm,the bronkerbosch algorithm is an algorithm for finding maximal cliques in an undirected graph
what do you mean by a simple path,a path in a diagram inwhich the edges are distinct is called a simple path it is also called as edge simple
what is sorted lists,a sorting algorithm is an algorithm that puts elements of a list in a certain order
what is forcebased algorithms,forcedirected graph drawing algorithms are a class of algorithms for drawing graphs in an aestheticallypleasing way
define introsoft,begin with quicksort and switch to heapsort when the recursion depth exceeds a certain level
how do you explain selection algorithm,in computer science a selection algorithm is an algorithm for finding the kth smallest number in a list or array such a number is called the kth order statistic
what are rings in windows nt,windows nt uses protection mechanism called rings provides by the process to implement separation between the user mode and kernel mode
what are the categories of avl rotations,let a be the nearest ancestor of the newly inserted nod which has the balancing factor 2 then the rotations can be classified into the following four categories leftleft the newly inserted node is in the left subtree of the left child of arightright the newly inserted node is in the right subtree of the right child of aleftright the newly inserted node is in the right subtree of the left child of arightleft the newly inserted node is in the left subtree of the right child of a
what do you mean by a linked list,a linked list is a linear collection of data elements called nodes where the linear order is given by pointers each node has two parts first part contain the information of the element second part contains the address of the next node in the list
define the worst case complexity of binary search,the worst case complexity of binary search is o1
give some benefits of multi threaded programming,there is an increased responsiveness to the user resource sharing within the processeconomy and utilization of multiprocessing architecture
link between quantum computing and quantum algorithm,it uses some essential feature of quantum computing such as quantum superposition or quantum entanglement
how do you explain beladys anomaly,beladys anomaly is also called fifo anomaly usually on increasing the number of frames allocated to a process virtual memory the process execution is faster because fewer page faults occur sometimes the reverse happens ie the execution time increases even when more frames are allocated to the process this is beladys anomaly this is true for certain page reference patterns
how do you explain user data,modifiable part of user space may include program data user stack area and programs that may be modified
state the advantages of segmented paging over pure segmentation,in broad terms paging is a memory management technique that allows a physical address space of a process to be noncontiguoussegmented paging does not have any source of external fragmentationsince a segment existence is not restricted to a contiguous memory range it can be easily grown and does not have to adjust into a physical memory mediumwith segmented paging the addition of an offset and a base is simpler as it is only an append operation instead of it being a full addition operation
what is kirkpatrickseidel algorithm,is an algorithm for computing the convex hull of a set of points in the plane
what is patience sorting,a variant of the algorithm efficiently computes the length of a longest increasing subsequence in a given array
define the main purpose of an operating system,there are two main purposes of an operating systemit is designed to make sure that a computer system performs well by managing its computational activitiesit provides an environment for the development and execution of programs
define a thread,a thread is a basic unit of cpu utilization it consists of a thread id program counter register set and a stack
define a binary semaphore,binary semaphore takes only 0 and 1 as value and used to implement mutual exclusion and synchronize concurrent processes
how do you explain worst case efficiency of linear search,the best case efficiency of linear search is on
give some examples of search and enumeration paradigms,this category also includes search algorithms branch and bound enumeration and backtracking
what is fibonacci search technique,search a sorted sequence using a divide and conquer algorithm that narrows down possible locations with the aid of fibonacci numbers
what is division algorithms,for computing quotient andor remainder of two numbers
how do you explain the minimum number of nodes in an avl tree of height h,the minimum number of nodes sh in an avl tree of height h is given by shsh1sh21 for h0 sh1
bubble sort is used for large or small list,bubble sort is used for small list
what do you mean by bitonic sorter,bitonic mergesort is a parallel algorithm for sorting it is also used as a construction method for building a sorting network
why is partitioning and formatting a prerequisite to installing an operating system,partitioning and formatting creates a preparatory environment on the drive so that the operating system can be copied and installed properly this includes allocating space on the drive designating a drive name determining and creating the appropriate file system structure
what do you mean by thrashing,it is a phenomenon in virtual memory schemes when the processor spends most of its time swapping pages rather than executing instructions this is due to an inordinate number of page faults
what is advantage of heuristic algorithm,in principle if run for an infinite amount of time they will find the optimal solution their merit is that they can find a solution very close to the optimal solution in a relatively short time
how do you explain the best case efficiency of binary search,the best case efficiency of binary search is o1
give some examples where binary search could be used,the examples of binary search are number guessing gameword lists applications to complexity theory
what is boyer moore hors pool algorithm,simplification of boyermoore
define dameraulaenshtein distance,dameraulevenshtein distance compute a distance measure between two strings improves on levenshtein distance
what do you mean by boyer moore hors pool algorithm,simplification of boyermoore
describe the buddy system of memory allocation,free memory is maintained in linked lists each of equal sized blocks any such block is of size 2k when some memory is required by a process the block size of next higher order is chosen and broken into two note that the two such pieces differ in address only in their kth bit such pieces are called buddies when any used block is freed the os checks to see if its buddy is also free if so it is rejoined and put into the original freeblock linkedlist
how do you explain backward euler method,in numerical analysis and scientific computing the backward euler method or implicit euler method is one of the most basic numerical methods for the solution of ordinary differential equations
whether linked list is linear or nonlinear data structure,according to access strategies linked list is a linear one according to storage linked list is a nonlinear one
what is dynamic time wrapping,measure similarity between two sequences which may vary in time or speed
how do you explain heapnsort,pick the smallest of the remaining elements add it to the end of the sorted list
how can i search for data in a linked list,unfortunately the only way to search a linked list is with a linear search because the only way a linked lists members can be accessed is sequentially sometimes it is quicker to take the data from a linked list and store it in a different data structure so that searches can be more efficient
what are iterative algorithms,iterative algorithms are loop based repetitions of a process
what do you mean by beam stack search,integrates backtracking with beam search
what is state space search,state space search is a process used in the field of computer science including artificial intelligence ai in which successive configurations or states of an instance are considered with the intention of finding a goal state with a desired property
what substring,a substring is a contiguous sequence of characters within a string
what is cache memory,cache memory is random access memory ram that a computer microprocessor can access more quickly than it can access regular ram as the microprocessor processes data it looks first in the cache memory and if it finds the data there from a previous reading of data it does not have to do the more timeconsuming reading of data from larger memory
what are necessary conditions which can lead to a deadlock situation in a system,deadlock situations occur when four conditions occur simultaneously in a system mutual exclusion hold and wait no preemption and circular wait
how do you explain the basic function of paging,paging is a memory management scheme that permits the physicaladdress space of a process to be noncontiguous it avoids the considerable problem of having to fit varied sized memory chunks onto the backing store
what factors determine whether a detectionalgorithm must be utilized in a deadlock avoidance system,one is that it depends on how often a deadlock is likely to occur under the implementation of this algorithm the other has to do with how many processes will be affected by deadlock when this algorithm is applied
list some of the static data structures in c,some of the static data structures in c are arrays pointers structures etc
how do you explain hungarian algorithm,algorithm for finding a perfect matching
what is smp,smp stands for symmetric multiprocessing it is the most common type of multiple processor system in smp each processor runs an identical copy of the operating system and these copies communicate with one another when required
how do you explain data structure,a data structure is a way of organizing data that considers not only the items stored but also their relationship to each other advance knowledge about the relationship between data items allows designing of efficient algorithms for the manipulation of data
how does dynamic loading aid in better memory space utilization,with dynamic loading a routine is not loaded until it is called this method is especially useful when large amounts of code are needed in order to handle infrequently occurring cases such as error routines
what is the purpose of an io status information,io status information provides information about which io devices are to be allocated for a particular process it also shows which files are opened and other io device state
how do you explain the need for priority queue,in a multiuser environment the operating system scheduler must decide which of the several processes to run only for a fixed period of time one algorithm uses queue jobs are initially placed at the end of the queue the scheduler will repeatedly take the first job on the queue run it until either it finishes or its time limit is up and place it at the end of the queue if it does not finish this strategy is not appropriate because very short jobs will soon to take a long time because of the wait involved in the rungenerally it is important that short jobs finish as fast as possible so these jobs should have precedence over jobs that have already been running further more some jobs that are not short are still very important and should have precedence this particular application seems to require a special kind of queue known as priority queue priority queue is also called as heap or binary heap
what are readwrite locks,read write locks provide simultaneous read access to many threads while the write access stays with one thread at a time they are especially useful in protecting the data that is not frequently written but read simultaneously by many threads they are slower than mutexes
define difference between micro kernel and macro kernel,micro kernel is a kernel which run services those are minimal for operating system performance in this kernel all other operations are performed by processormacro kernel is a combination of micro and monolithic kernel in monolithic kernel all operating system code is in single executable image
what do you mean by user program,the instructions to be executed
how does the representation of a node in a doublylinked list differ from that in a singlylinked list,unlike singlylinked list in which each node stores the address of only the next node in the list each node in a doublylinked list holds the address of its previous node also
define shortest common super sequence problem,find the shortest supersequence that contains two or more sequences as subsequences
define a address register,address registers contain main memory addresses of data and instructions or they contain a portion of the address that is used in the calculation of the complete addresses
how do you explain smp,to achieve maximum efficiency and reliability a mode of operation known as symmetric multiprocessing is used in essence with smp any process or threads can be assigned to any processor
define radix sort,sorts strings letter by letter
what is fuzzy algorithm,fuzzy logic is an approach to computing based on degrees of truth rather than the usual true or false
what do you mean by hirschberhs algorithm,finds the least cost sequence alignment between two sequences as measured by their levenshtein distance
how do you explain the best case efficiency of binary search,the best case efficiency of binary search is o1
what do you mean by laplacian smoothing,an algorithm to smooth a polygonal mesh
define static data structures,a data structure formed when the number of data items are known in advance is referred as static data structure or fixed size data structure
what is depth of a tree,depth of a tree the maximum number of levels in a tree is called the depth of a tree in other words depth of a tree is one more than maximum level of the tree the depth of a tree in above figure is 4
what are steps for postorder traversing a binary tree,the steps for post order traversing a binary tree are as follows traverse the left subtree traverse the right subtree visit the root
define the meaning of export command in ubuntu,export is a command in bash shell language when you try to set a variable it is visible or exported to any subprocess started from that instance of bash the variable will not exist in the subprocess without the export command
write an algorithm for inserting node at the beginning of the doublylinked list when list is not empty,allocate memory for the new node assign a value to the data field of the new node make the next field of the new point to the first node in the list make the prev field of start point to the new node make the prev field of the new node point to null make start point to the new node
what do you mean by chans algorithm,is an optimal outputsensitive algorithm to compute the convex hull of a set points in 2 or 3dimensional space
binary searches can be done on an arrayyesno,yes
define precision,precision refers the accuracy of the decimal portion of a value precision is the number of digits allowed after the decimal point
give examples of optimisation problems,linear programming dynamic programming the greedy methodmethod the heuristic method
what do you mean by depth of a tree,depth of a tree the maximum number of levels in a tree is called the depth of a tree in other words depth of a tree is one more than maximum level of the tree the depth of a tree in above figure is 4
what is a folder in ubuntu,there is no concept of folder in ubuntu everything including your hardware is a file
how do you explain a process,a program in execution is called a processprocesses are of two types are operating system processes and user processes
how is any data structure application is classified among files,a linked list application can be organized into a header file source file and main application file the first file is the header file that contains the definition of the node structure and the linkedlist class definition the second file is a source code file containing the implementation of member functions of the linkedlist class the last file is the application file that contains code that creates and uses the linkedlist class
what is ternary search,a technique for finding the minimum or maximum of a function that is either strictly increasing and then strictly decreasing or vice versa
how do you explain kernel,kernel is the core and most important part of a computer operating system which provides basic services for all parts of the os
differentiate between complier and interpreter,an interpreter reads one instruction at a time and carries out the actions implied by that instruction it does not perform any translation but a compiler translates the entire instructions
define a queue,a queue is an ordered collection of items from which items may be deleted at one end front end and items inserted at the other end rear endit obeys fifo rule there is no limit to the number of elements a queue contains
how do you explain metaphone,an algorithm for indexing words by their sound when pronounced in english
what is bentleyottmann algorithm,the bentleyottmann algorithm is a sweep line algorithm for listing all crossings in a set of line segments
define newtonraphson division,an algorithm used for the fast computation of large integer powers of a number
give an example of dynamic programming,for example floydwarshall algorithm
how do you explain addition chain exponentiation,the classic ways to round numbers
explain the concept of the distributed systems,distributed systems work in a network they can share the network resources communicate with each other
define toddcoxeter algorithm,procedure for generating cosets
what do you mean by longest increasing subsequence problem,find the longest increasing subsequence of a given sequence
what do you mean by a process,a program in execution is called a processprocesses are of two types are operating system processes and user processes
define quick sort algorithm,quicksort sometimes called partitionexchange sort is an on log n efficient sorting algorithm serving as a systematic method for placing the elements of an array in order
give some examples where recursive algorithms are used,for example tower of hanoi is well understood using recursive implementation
what is shortest path problem,in graph theory the shortest path problem is the problem of finding a path between two vertices or nodes in a graph such that the sum of the weights of its constituent edges is minimized
define the difference between micro kernel and macro kernel,micro kernel micro kernel is the kernel which runs minimal performance affecting services for operating system in micro kernel operating system all other operations are performed by processormacro kernel macro kernel is a combination of micro and monolithic kernel
what do you mean by krauss matching wildcards algorithm,an opensource nonrecursive algorithm
define linear search,finds an item in an unsorted sequence
what is process synchronization,a situation where several processes access and manipulate the same data concurrently and the outcome of the execution depends on the particular order in which the access takes place is called race condition to guard against the race condition we need to ensure that only one process at a time can be manipulating the same data the technique we use for this is called process synchronization
define smithwaterman algorithm,find local sequence alignment
define dinics algorithm,dinicsalgorithm is a strongly polynomial algorithm for computing the maximum flow in a flow network
what do you mean by the purpose of an io status information,io status information provides info about which io devices are to be allocated for a particular process it also shows which files are opened and other io device state
what is fragmentation tell about different types of fragmentation,when many of free blocks are too small to satisfy any request then fragmentation occurs external fragmentation and internal fragmentation are two types of fragmentation external fragmentation happens when a dynamic memory allocation algorithm allocates some memory and a small piece is left over that cannot be effectively used internal fragmentation is the space wasted inside of allocated memory blocks because of restriction on the allowed sizes of allocated blocks
how do you explain memorymanagement unit mmu,hardware device that maps virtual to physical address in mmu scheme the value in the relocation register is added to every address generated by a user process at the time it is sent to memorythe user program deals with logical addresses it never sees the real physical addresses
in an avl tree at what condition the balancing is to be done,if the pivotal value or the height factor is greater than 1 or less than 1
what do you mean by timsort,adaptative algorithm derived from merge sort and insertion sort used in python 23 and up and java se 7
explain what is the meaning of export command in ubuntu,export is a command in bash shell language when you try to set a variable it is visible or exported to any subprocess started from that instance of bash the variable will not exist in the subprocess without the export command
what do you mean by minimum bounding box algorithm,find the oriented minimum bounding box enclosing a set of points
what do you mean by johnsons algorithm,all pairs shortest path algorithm in sparse weighted directed graph
what is pollards p1 algorithm,it is a specialpurpose algorithm meaning that it is only suitable for integers with specific types of factors it is the simplest example of an algebraicgroup factorisation algorithm
what is sequence algorithms,a sequence algorithm is an algorithm 12 that takes one or more linear sequences as inputs
what is average case performance of binary search,the average case performance of binary search is olog n
is it necessary to sort a file before searching a particular item,unless work is involved in searching a element than to sort and then extract then we dont go for sort if frequent use of the file is required for the purpose of retrieving specific element it is more efficient to sort the filethus it depends on situation
what is a deadlock,it is a condition where a group of two or more waiting for the resources currently in use by other processes of the same groupin this situation every process is waiting for an event to be triggered by another process of the group since no thread can free up the resource a deadlock occurs and the application hangs
how do you explain collision detection,check for the collision or intersection of two given solids
what do you mean by nonblocking minimal spanning switch,a nonblocking minimal spanning switch is a device that can connect n inputs to n outputs in any combination
what do you mean by spanning tree,in the mathematical field of graph theory a spanning tree t of an undirected graph g is a subgraph that is a tree which includes all of the vertices of g with minimum possible number of edges
define asymmetric clustering,in asymmetric clustering a machine is in a state known as hot standby mode where it does nothing but to monitor the active server that machine takes the active servers role should the server fails
what is lagrange interpolation,interpolation using lagrange polynomials
write the disadvantages of separate chaining,the elements are evenly distributed some elements may have more elements and some may not have anythingit requires pointers this leads to slow the algorithm down a bit because of the time required to allocate new cells and also essentially requires the implementation of a second data structure
what is traveling salesman problem,given a list of cities and the distances between each pair of cities what is the shortest possible route that visits each city and returns to the origin city
what do you mean by a deadlock,it is a condition where a group of two or more waiting for the resources currently in use by other processes of the same groupin this situation every process is waiting for an event to be triggered by another process of the group since no thread can free up the resource a deadlock occurs and the application hangs
define brute force search,an exhaustive and reliable search method but computationally inefficient in many applications
what is the order of growth of the bubble sort algorithm,the bubble sort algorithm has a quadratic order of growth
what is thrashing,it is a phenomenon in virtual memory schemes when the processor spends most of its time swapping pages rather than executing instructions this is due to an inordinate number of page faults
how do you explain a node class,a node class is a class that relies on the base class for services and implementation provides a wider interface to users than its base class relies primarily on virtual functions in its public interface depends on all its direct and indirect base class can be understood only in the context of the base class can be used as base for further derivation can be used to create objects a node class is a class that has added new services or functionality beyond the services inherited from its base class
what is the data structures used to perform recursion,stack because of its lifo last in first out property it remembers its caller so knows whom to return when the function has to return recursion makes use of system stack for storing the return addresses of the function calls every recursive function has its equivalent iterative nonrecursive function even when such equivalent iterative procedures are written explicit stack is to be used
define hopcroft karp algorithm,convert a bipartite graph to a maximum cardinality matching
define worst case space complexity of bubble sort algorithm,o1 auxiliary
define multitasking,multitasking is the process within an operating system that allows the user to run several applications at the same time however only one application is active at a time for user interaction although some applications can run behind the scene
how do you explain synchronization what are the different synchronization mechanisms,synchronization means controlling access to a resource that is available to two or more threads or process different synchronization mechanisms are mutexsemaphoresmonitorscondition variables critical regions and read write locks
what do you mean by the complexity of the bubble sort algorithm,the complexity is on2 the time required to execute the bubble sort algorithm is proportional to n2 where n is the number of input items
define kernel,a kernel is the core of every operating system it connects applications to the actual processing of data it also manages all communications between software and hardware components to ensure usability and reliability
what is gilbertjohnsonkeerthi distance algorithm,determining the smallest distance between two convex shapes
how do you explain delaunay triangularisation,delaunay triangulation also known as a delone triangulation for a given set p of discrete points in a plane is a triangulation dtp such that no point in p is inside the circumcircle of any triangle in dtp
what do you mean by algorithm design pattern,techniques for designing and implementing algorithm designs are also called algorithm design patterns
what do you mean by asymmetric clustering,in asymmetric clustering a machine is in a state known as hot standby mode where it does nothing but to monitor the active server that machine takes the active servers role should the server fails
describe the objective of multi programming,the main objective of multiprogramming is to have process running at all times with this design cpu utilization is said to be maximized
define a node class,a node class is a class that relies on the base class for services and implementation provides a wider interface to users than its base class relies primarily on virtual functions in its public interface depends on all its direct and indirect base class can be understood only in the context of the base class can be used as base for further derivation can be used to create objects a node class is a class that has added new services or functionality beyond the services inherited from its base class
what are the disadvantages of representing a stack or queue by a linked list,a node in a linked list info and next field occupies more storage than a corresponding element in an arrayadditional time spent in managing the available list
what is dinics algorithm,dinicsalgorithm is a strongly polynomial algorithm for computing the maximum flow in a flow network
what do you mean by convex hull,the convex hull or convex envelope or convex closure of a set x of points in the euclidean plane or in a euclidean space or more generally in an affine space over the reals is the smallest convex set that contains x
what do you mean by maximal cliques,a maximal clique is a clique that cannot be extended by including one more adjacent vertex
define non comparison sort,the sorting in which there is no comparison with adjacent elements
what do you mean by sweep line algorithm,plane sweep algorithm is an algorithmic paradigm that uses a conceptual sweep line or sweep surface to solve various problems in euclidean space
how do you explain thrashing,it is a phenomenon in virtual memory schemes when the processor spends most of its time swapping pages rather than executing instructions this is due to an inordinate number of page faults
how do you explain chakravala method,a cyclic algorithm to solve indeterminate quadratic equations including pells equation
what is a node class,a node class is a class that relies on the base class for services and implementation provides a wider interface to users than its base class relies primarily on virtual functions in its public interface depends on all its direct and indirect base class can be understood only in the context of the base class can be used as base for further derivation can be used to create objects a node class is a class that has added new services or functionality beyond the services inherited from its base class
define suffix trees,a suffix tree also called pat tree or in an earlier form position tree is a compressed trie containing all the suffixes of the given text as their keys and positions in the text as their values suffix trees allow particularly fast implementations of many important string operationsan opensource nonrecursive algorithm
how do you explain burst sort,build a compact cache efficient burst trie and then traverse it to create sorted output
define internal nodes,the nodes other than the root and the leaves are called internal nodes
how do you explain context switching,context is associated with each process encompassing all the information describing the current execution state of the processwhen the os saves the context of program that is currently running and restores the context of the next ready to run process it is called as context switching it is important for multitasking os
explain the concept of the batched operating systems,in batched operating system the users gives their jobs to the operator who sorts the programs according to their requirements and executes them this is time consuming but makes the cpu busy all the time
define a daemon,daemon disk and execution monitor is a process that runs in the background without users interaction they usually start at the booting time and terminate when the system is shut down
how do you explain chain search,a recursive algorithm for determining roots of polynomials defined over a finite field
what do you mean by topological sort,finds linear order of nodes eg jobs based on their dependencies
what do you mean by shortest common super sequence problem,find the shortest supersequence that contains two or more sequences as subsequences
what do you mean by polygon triangularisation,decompose a polygon into a set of triangles
define the basic function of paging,paging is a memory management scheme that permits the physicaladdress space of a process to be noncontiguous it avoids the considerable problem of having to fit varied sized memory chunks onto the backing store
define semaphore,semaphore is a protected variable or abstract data type that is used to lock the resource being used the value of the semaphore indicates the status of a common resource
what is monolithic kernel,a monolithic kernel is a kernel which includes all operating system code is in single executable image
what is toomcook algorithm,it is a multiplication algorithm for large integers
how do you explain the complexity of the bubble sort algorithm,the complexity is on2 the time required to execute the bubble sort algorithm is proportional to n2 where n is the number of input items
what is a folder in ubuntu,there is no concept of folder in ubuntu everything included in your hardware is a file
what necessary conditions can lead to a deadlock situation in a system,deadlock situations occur when four conditions occur simultaneously in a system mutual exclusion hold and wait no preemption and circular wait
what do you mean by system stack,each process has one or more lifo stacks associated with it used to store parameters and calling addresses for procedure and system calls
define process synchronization,a situation where several processes access and manipulate the same data concurrently and the outcome of the execution depends on the particular order in which the access takes place is called race condition to guard against the race condition we need to ensure that only one process at a time can be manipulating the same data the technique we use for this is called process synchronization
what do you mean by an assembler,an assembler acts as a translator for low level language assembly codes written using mnemonic commands are translated by the assembler into machine language
how do you explain faugere f4 algorithm,finds a grbner basis also mentions the f5 algorithm
define quantum algorithm,the term is usually used for those algorithms which seem inherently quantum
what do you mean by the concept of demand paging,demand paging specifies that if an area of memory is not currently being used it is swapped to disk to make room for an applications need
define gui,gui is short for graphical user interface it provides users with an interface wherein actions can be performed by interacting with icons and graphical symbols people find it easier to interact with the computer when in a gui especially when using the mouse instead of having to remember and type commands users click on buttons to perform a process
define fordfulkerson algorithm,computes the maximum flow in a graph
what do you mean by the translation lookaside buffer tlb,in a cached system the base addresses of the last few referenced pages is maintained in registers called the tlb that aids in faster lookup tlb contains those pagetable entries that have been most recently used normally each virtual memory reference causes 2 physical memory accesses one to fetch appropriate pagetable entry and one to fetch the desired data using tlb
how do you explain a device queue,a list of processes waiting for a particular io device is called device queue
what is smp,smp is a short form of symmetric multiprocessing it is the most common type of multipleprocessor systems in this system each processor runs an identical copy of the operating system and these copies communicate with one another as needed
define nos,nos is short for network operating system it is a specialized software that will allow a computer to communicate with other devices over the network including filefolder sharing
how do you explain jump and walk algorithm,an algorithm for point location in triangulations
how do you explain shifting nthroot algorithm,digit by digit root extraction
what is karatsuba algorithm,the karatsuba algorithm is a fast multiplication algorithm
define the purpose of multiprocessing operating system,it is the ability where a user can execute multiple processes simultaneously on a multiprocessor system this utilizes more than one cpu at a time
what is the difference between a stack and an array,stack is a ordered collection of items stack is a dynamic object whose size is constantly changing as items are pushed and poppedstack may contain different data typesstack is declared as a structure containing an array to hold the element of the stack and an integer to indicate the current stack top within the array array is an ordered collection of items array is a static object ie no of item is fixed and is assigned by the declaration of the arrayit contains same data typesarray can be home of a stack ie array can be declared large enough for maximum size of the stack
define primality tests,determining whether a given number is prime
how do heuristic algorithms work,these algorithms work by getting closer and closer to the optimal solution as they progress
what is knapsack problem,the knapsack problem is a problem where there is a set of given items the goal of the problem is to pack the knapsack to get the maximum total value each item has some weight and some value total weight that we can carry is no more than some fixed number x so we must consider weights of items as well as their value
what do you mean by memorymanagement unit mmu,hardware device that maps virtual to physical address in mmu scheme the value in the relocation register is added to every address generated by a user process at the time it is sent to memorythe user program deals with logical addresses it never sees the real physical addresses
what do you mean by fragmentation,fragmentation is a phenomenon of memory wastage it reduces the capacity and performance because space is used inefficiently
what are the parameters of euclids algorithm,by speed and compactness
what are the notations used in evaluation of arithmetic expressions using prefix and postfix forms,polish and reverse polish notations
define sequence algorithms,a sequence algorithm is an algorithm 12 that takes one or more linear sequences as inputs
what is tree sort,build binary tree then traverse it to create sorted list
what do you mean by balanced trees,balanced trees have the structure of binary trees and obey binary search tree properties apart from these properties they have some special constraints which differ from one data structure to another however these constraints are aimed only at reducing the height of the tree because this factor determines the time complexity eg avl trees splay trees
what is the main use of dynamic programming,dynamic programming reduces the exponential nature of many problems to polynomial complexity
what do you mean by longest path problem,find a simple path of maximum length in a given graph
what do you mean by a socket,a socket is used to make connection between two applications endpoints of the connection are called socket
what are the necessary conditions for deadlock to occur,at least one resource should be occupied in a nonsharable condition a process holding at least one resource is waiting for more resources currently in use by other processes it is not possible to preempt the resource there exists a circular wait for processes
define convex hull,the convex hull or convex envelope or convex closure of a set x of points in the euclidean plane or in a euclidean space or more generally in an affine space over the reals is the smallest convex set that contains x
how do you explain bankers algorithm,bankers algorithm is used to avoid deadlock it is the one of deadlockavoidance method it is named as bankers algorithm on the banking system where bank never allocates available cash in such a manner that it can no longer satisfy the requirements of all of its customers
what do you mean by a node class,a node class is a class that relies on the base class for services and implementation provides a wider interface to users than its base class relies primarily on virtual functions in its public interface depends on all its direct and indirect base class can be understood only in the context of the base class can be used as base for further derivation can be used to create objects a node class is a class that has added new services or functionality beyond the services inherited from its base class
write an algorithm for inserting a node at the beginning of the circularlinked list when the list is not empty,if the list is not empty the following algorithm is used to insert a node in the linked list allocate a memory for a new nodeassign a value to the data field of the new node
how do you explain brute force,this is the naive method of trying every possible solution to see which is best
give example of linear programming,graphical linear programming
how do you explain smp,smp stands for symmetric multiprocessing it is the most common type of multiple processor system in smp each processor runs an identical copy of the operating system and these copies communicate with one another when required
state the difference between persistent and ephemeral data structure,persistent data structures are the data structures which retain their previous state and modifications can be done by performing certain operations on it eg stack ephemeral data structures are the data structures which cannot retain its previous state eg queues
what do you mean by euclids algorithm,euclids algorithm to compute the greatest common divisor gcd
what do you mean by smp,smp is short for symmetric multiprocessing and is the most common type of multipleprocessor systems in this system each processor runs an identical copy of the operating system and these copies communicate with one another as needed
what is non comparison sort,the sorting in which there is no comparison with adjacent elements
how do you explain floyd warshall algorithm,solves the all pairs shortest path problem in a weighted directed graph
why is a single serial port managed with a single interruptdriven io but a frontend processor is managed using a polling io such as a terminal concentrator,if a polling loop is used it can greatly reduce the amount of load on the system by looping through without the requirement of iodue to this reason interrupts are used for single ports as the frequency of io on such a port is less and can be managed effectively whereas we use polling for multiple ports as the frequency of io increases and are of short durations which suits polling
define randomised algorithms,such algorithms make some choices randomly or pseudorandomly they can be very useful in finding approximate solutions for problems
define the best case performance of selection sort,the best case performance of selection sort is on2
what do you mean by a compiler,a compiler is a program that takes a source code as an input and converts it into an object code during the compilation process the source code goes through lexical analysis parsing and intermediate code generation which is then optimized to give final output as an object code
write an algorithm for inserting a node in a singlylinked list if list is empty,allocate memory for the new node assign a value to the data field of the new node make the next field of the new node point to null make start point to the new node
how do you explain average case performance of binary search,the average case performance of binary search is olog n
what is kruscals algorithm,kruskals algorithm is a minimumspanningtree algorithm which finds an edge of the least possible weight that connects any two trees in the forest
what is best case performance of bubble sort algorithm,the best case performance of bubble sort algorithm is on
what do you mean by dualmode operation,in order to protect the operating systems and the system programs from the malfunctioning programs the two mode operations were evolvedsystem mode and user mode
write an algorithm to search for an employee id in an arrayhint use linear search,read the employee id to be searched set i0 repeat step d until in or arriemployee id increment i by 1 if in display not found else display found
what do you mean by the best page size when designing an operating system,the best paging size varies from system to system so there is no single best when it comes to page size there are different factors to consider in order to come up with a suitable page size such as page table paging time and its effect on the overall efficiency of the operating system
what do you mean by fragmentation,fragmentation is memory wasted it can be internal if we are dealing with systems that have fixedsized allocation units or external if we are dealing with systems that have variablesized allocation units
what does isempty member method determines,isempty checks if the stack has at least one element this method is called by pop before retrieving and returning the top element
define graph,a graph g consist of a nonempty set v which is a set of nodes of the graph a set e which is the set of edges of the graph and a mapping from the set for edge e to a set of pairs of elements of v it can also be represented as gv e
what do you mean by logical and physical addresses space,logical address space is generated from cpu it bound to a separate physical address space is central to proper memory management physical address space is seen by the memory unit logical address space is virtual address space both these address space will be same at compile time but differ at execution time
what is relative path,absolute path is exact path from root directory
how do you explain topological sort,a topological sort or topological ordering of a directed graph is a linear ordering of its vertices such that for every directed edge uv from vertex u to vertex v u comes before v in the ordering
parenthesis is never required in postfix or prefix expressions why,parenthesis is not required because the order of the operators in the postfix prefix expressions determines the actual order of operations in evaluating the expression
how do you explain a deadlock,it is a condition where a group of two or more waiting for the resources currently in use by other processes of the same groupin this situation every process is waiting for an event to be triggered by another process of the group since no thread can free up the resource a deadlock occurs and the application hangs
when does thrashing occur,thrashing refers to an instance of high paging activity this happens when it is spending more time paging instead of executing
define response time,this is the time elapsed from when a process is submitted until a useful output is obtained
what is line segment intersection,finding whether lines intersect usually with a sweep line algorithm
what do you mean by sequence sorting,sorting the data in a sequence
how do you explain process spawning,when the os at the explicit request of another process creates a process this action is called process spawning
how do you explain meant by armstickiness,if one or a few processes have a high access rate to data on one track of a storage disk then they may monopolize the device by repeated requests to that track this generally happens with most common device scheduling algorithms lifo sstf cscan etc highdensity multisurface disks are more likely to be affected by this than low density ones
define modular method,in this method modulus operation is applied on each key this involves dividing the key value by the size of the hash table to obtain the remainder of the division the remainder is considered as the address of the record corresponding to the key value
give some examples of divide and conquer algorithms,an example of a decrease and conquer algorithm is the binary search algorithm
what is difference between micro kernel and macro kernel,micro kernel is a kernel which run services those are minimal for operating system performance in this kernel all other operations are performed by processormacro kernel is a combination of micro and monolithic kernel in monolithic kernel all operating system code is in single executable image
define constant time,constant time if the time needed by the algorithm is the same regardless of the input size eg an access to an array element
what is rabinkarp string search algorithms,amortized linear sublinear in most times algorithm for substring search
how do you explain the resident set and working set of a process,resident set is that portion of the process image that is actually in realmemory at a particular instant working set is that subset of resident set that is actually needed for execution relate this to the variablewindow size method for swapping techniques
how do you explain precision,precision refers the accuracy of the decimal portion of a value precision is the number of digits allowed after the decimal point
what kind of operations is possible on a semaphore,two kinds of operations are possible on a semaphore wait and signal
define a simple graph,a simple graph is a graph which has not more than one edge between a pair of nodes than such a graph is called a simple graph
what do you mean by toomcook algorithm,it is a multiplication algorithm for large integers
to represent an arithmetic expression binary tree uses three notations which are those notations,to represent an arithmetic expression binary tree uses three notations those are infix notation prefix notation postfix notation
how do you explain jarowinkler distance,it is a measure of similarity between two strings
what do you mean by unrestricted algorithm,an unrestricted algorithm is an algorithm for the computation of a mathematical function that puts no restrictions on the range of the argument or on the precision that may be demanded in the result
what is maxcliquedyn maximum clique algorithm,the maxcliquedyn algorithm is an algorithm for finding a maximum clique in an undirected graph
how do you explain the basic function of paging,paging is a memory management scheme that permits the physical address space of a process to be noncontiguous it avoids the considerable problem of having to fit varied sized memory chunks onto the backing store
what is pancake sorting,pancake sorting is the colloquial term for the mathematical problem of sorting a disordered stack of pancakes in order of size when a spatula can be inserted at any point in the stack and used to flip all pancakes above it
what do you mean by soundex,soundex is a phonetic algorithm for indexing names by sound
define spooling,spooling is normally associated with printing when different applications want to send an output to the printer at the same time spooling takes all of these print jobs into a disk file and queues them accordingly to the printer
what do you mean by euclidean minimum spanning tree,algorithms for computing the minimum spanning tree of a set of points in the plane
what do you mean by dispatcher,dispatcher module gives control of the cpu to the process selected by the shortterm scheduler this involves switching context switching to user mode jumping to the proper location in the user program to restart that program dispatch latency time it takes for the dispatcher to stop one process and start another running
how do you explain comb sort,the basic idea is to eliminate turtles or small values near the end of the list
define set division,compute elementary functions using a table of logarithms
define soundex,phonetic algorithm for indexing names by sound as pronounced in english
define the need for path compression,path compression is performed during a find operation suppose if we want to perform findx then the effect of path compression is that every node on the path from x to the root has its parent changed to the root
what is the difference between array and stack,stack follows lifo thus the item that is first entered would be the last removedin array the items can be entered or removed in any order basically each member access is done using index no strict order is to be followed here to remove a particular element array may be multidiamensional or onediamensional but stack should be onediamensional but both are linear data structure
define the concept of reentrancy,it is a very useful memory saving technique that is used for multiprogrammed time sharing systems it provides functionality that multiple users can share a single copy of program during the same period it has two key aspectstthey are the program code cannot modify itselfthe local data for each user process must be stored separately
define nonterminal nodes in a tree,all intermediate nodes that traverse the given tree from its root node to the terminal nodes are referred as nonterminal nodes
define exponential time,exponential time if the time is an exponential function of the input size eg bruteforce search
what is user program,the instructions to be executed
how do you explain thrashing,it is a phenomenon in virtual memory schemes when the processor spends most of its time swapping pages rather than executing instructions this is due to an inordinate number of page faults
what do you mean by absolute path,relative path is relative to the current path
what is virtual memory,virtual memory is a memory management technique for letting processes execute outside of memory this is very useful especially is an executing program cannot fit in the physical memory
what do you mean by spooling,spooling is normally associated with printing when different applications want to send an output to the printer at the same time spooling takes all of these print jobs into a disk file and queues them accordingly to the printer
how do you explain euclidean shortest path problem,find the shortest path between two points that does not intersect any obstacle
define iterative deepening depthfirst search,a state space search strategy
which are the various variants of binary tree,various variants of binary tree are strictly binary tree a binary tree is said to be strictly binary if every node except for the leaf nodes have nonempty left and right children
what do you know about a pipe when is it used,it is an ipc mechanism used for one way communication between two processes which are related a single process doesnt need to use pipe it is used when two process wish to communicate oneway
what is semaphore,semaphore is a protected variable or abstract data type that is used to lock the resource being used the value of the semaphore indicates the status of a common resource
what are the collision resolution methods,separate chaining or external hashingopen addressing or closed hashing
define rr scheduling algorithm,rr roundrobin scheduling algorithm is primarily aimed for timesharing systems a circular queue is a setup in such a way that the cpu scheduler goes around that queue allocating cpu to each process for a time interval of up to around 10 to 100 milliseconds
what is executive in windows nt,in windows nt executive refers to the operating system code that runs in kernel mode
state one advantage of a huffman tree,a huffman tree helps assign variable length codes to the characters in a message it also ensures that the character codes have the prefix property
how do you explain soundex,soundex is a phonetic algorithm for indexing names by sound
what do you mean by fischeryates shuffle,randomly shuffle a finite set
what is a daemon,daemon is a program that runs in the background without users interaction a daemon runs in a multitasking operating system like unix a daemon is initiated and controlled by special programs known as processes
what is data structure,a data structure is a way of organizing data that considers not only the items stored but also their relationship to each other advance knowledge about the relationship between data items allows designing of efficient algorithms for the manipulation of data
how do you explain polygon triangularisation,decompose a polygon into a set of triangles
what is constant time,constant time if the time needed by the algorithm is the same regardless of the input size eg an access to an array element
give some examples where binary search could be used,the examples of binary search arenumber guessing game word listsapplications to complexity theory
define aging in operating system,aging is a technique used to avoid the starvation in resource scheduling system
what is brute force,this is the naive method of trying every possible solution to see which is best
what do you mean by the need for priority queue,in a multiuser environment the operating system scheduler must decide which of the several processes to run only for a fixed period of time one algorithm uses queue jobs are initially placed at the end of the queue the scheduler will repeatedly take the first job on the queue run it until either it finishes or its time limit is up and place it at the end of the queue if it does not finish this strategy is not appropriate because very short jobs will soon to take a long time because of the wait involved in the rungenerally it is important that short jobs finish as fast as possible so these jobs should have precedence over jobs that have already been running further more some jobs that are not short are still very important and should have precedence this particular application seems to require a special kind of queue known as priority queue priority queue is also called as heap or binary heap
what do you mean by incremental heuristic search algorithm,incremental heuristic search algorithms combine both incremental and heuristic search to speed up searches of sequences of similar search problems which is important in domains that are only incompletely known or change dynamically
how do you explain borweins algorithm,an algorithm to calculate the value of 1p
how do you explain beam stack search,integrates backtracking with beam search
what is baileyborwein plouffe formula,a spigot algorithm for the computation of the nth binary digit of p
how do you explain shortest common super sequence problem,find the shortest supersequence that contains two or more sequences as subsequences
how do you explain linked list,linked list is one of the fundamental data structures it consists of a sequence of nodes each containing arbitrary data fields and one or two links pointing to the next andor previous nodes a linked list is a selfreferential datatype because it contains a pointer or link to another data of the same type linked lists permit insertion and removal of nodes at any point in the list in constant time but do not allow random access
define long term scheduler,long term scheduler determines which programs are admitted to the system for processing it controls the degree of multiprogramming once admitted a job becomes a process
define oddeven sort,a relatively simple sorting algorithm developed originally for use on parallel processors with local interconnections
what do you mean by graham scan,grahams scan is a method of finding the convex hull of a finite set of points in the plane with time complexity on log n
what do you mean by throughput turnaround time waiting time and response time,throughput number of processes that complete their execution per time unitturnaround time amount of time to execute a particular processwaiting time amount of time a process has been waiting in the ready queueresponse time amount of time
what is root partition,root partition is where the operating system kernel is located it also contains other potentially important system files that are mounted during boot time
what are realtime systems,realtime systems are used when rigid time requirements have been placed on the operation of a processor it has well defined and fixed time constraints
what is a internal node,nternal node an intermediate node between the root and the leaf nodes is called an internal node it is also referred to as a non terminal node in preceding figure nodes 7 3 6 and 9 are internal nodes
what do you mean by tarjans strongly connected componets algorithms,tarjans algorithm is an algorithm in graph theory for finding the strongly connected components of a directed graph
how do you classify algorithms as optimisation problems,an optimization problem is the problem of finding the best solution from all feasible solutions
what is kargerstein algorithm,kargers algorithm is a randomized algorithm to compute a minimum cut of a connected graph
define time sharing system,in a timesharing system the cpu executes multiple jobs by switching among them also known as multitasking this process happens so fast that users can interact with each program while it is running
how do you explain randomised algorithms,such algorithms make some choices randomly or pseudorandomly they can be very useful in finding approximate solutions for problems
how do you explain page cannibalizing,page swapping or page replacements are called page cannibalizing
how do you explain nonblocking minimal spanning switch,a nonblocking minimal spanning switch is a device that can connect n inputs to n outputs in any combination
how do you explain quantum algorithm,the term is usually used for those algorithms which seem inherently quantum
how do you explain response time,this is the time elapsed from when a process is submitted until a useful output is obtained
what is marshalling,the process of packaging and sending interface method parameters across thread or process boundaries
minimum number of queues needed to implement the priority queue,two one queue is used for actual storing of data and another for storing priorities
explain euclids algorithm,given two numbers not prime to one another to find their greatest common measure he defines a number to be a multitude composed of units a counting number a positive integer not including zero to measure is to place a shorter measuring length s successively q times along longer length l until the remaining portion r is less than the shorter length s in modern words remainder r l qs q being the quotient or remainder r is the modulus the integerfractional part left over after the division
define transitive closure,find the transitive closure of a given binary relation
what do you mean by galegaleshapely algorithm,solves the stable marriage problem
what do you mean by index calculus algorithm,the index calculus algorithm is a probabilistic algorithm for computing discrete logarithms
how do you explain a library,it is a file which contains object code for subroutines and data to be used by the other program
define path based strong component algorithm,in graph theory the strongly connected components of a directed graph may be found using an algorithm that uses depthfirst search in combination with two stacks one to keep track of the vertices in the current component and the second to keep track of the current search path
define a named pipe,a traditional pipe is unnamed and can be used only for the communication of related process if unrelated processes are required to communicate named pipes are required it is a pipe whose access point is a file available on the file system when this file is opened for reading a process is granted access to the reading end of the pipe similarly when the file is opened for writing the process is granted access to writing end of the pipe a named pipe is also referred to as fifo or named fifo
how do you explain unrestricted algorithm,an unrestricted algorithm is an algorithm for the computation of a mathematical function that puts no restrictions on the range of the argument or on the precision that may be demanded in the result
what do you mean by relative path,absolute path is exact path from root directory
define hungarian algorithm,algorithm for finding a perfect matching
define polygon triangularisation,decompose a polygon into a set of triangles
define truncation method,this method is used to compute the address of a record in this method a part of the numeric key is considered as an offset address of the corresponding record
what do you mean by a realtime system,realtime system is used in the case when rigidtime requirements have been placed on the operation of a processor it contains a well defined and fixed time constraints
how do you explain dijkstras algorithm,dijkstras algorithm is an algorithm for finding the shortest paths between nodes in a graph which may represent
how do you explain point set registration algorithms,finds the transformation between two point sets to optimally align them
how do you explain selection sorts,convert the list into a heap keep removing the largest element from the heap and adding it to the end of the list
how do you explain a thread,a thread is a program line under execution thread sometimes called a lightweight process is a basic unit of cpu utilization it comprises a thread id a program counter a register set and a stack
what are realtime systems,realtime systems are used when rigid time requirements have been placed on the operation of a processor it has well defined and fixed time constraints
define cascading termination,if one process is terminated its related processes are also terminated abnormally then it is called cascade terminationit occurs in the case of parent child processif the parent process is terminated normally or abnormally then all its child processes must be terminatedthe parent is existing and the operating system does not allow a child to continue if its parent terminatesthis child process is the new process created by the process called the parent process
how do you explain ternary search,a technique for finding the minimum or maximum of a function that is either strictly increasing and then strictly decreasing or vice versa
what is a binary semaphore,binary semaphore takes only 0 and 1 as value and used to implement mutual exclusion and synchronize concurrent processes
what do you mean by brute force search,an exhaustive and reliable search method but computationally inefficient in many applications
how do you explain forcebased algorithms,forcedirected graph drawing algorithms are a class of algorithms for drawing graphs in an aestheticallypleasing way
what is system stack,each process has one or more lifo stacks associated with it used to store parameters and calling addresses for procedure and system calls
write algorithm for inserting node at the beginning of singlylinked list if list is not empty,to insert a node at the beginning of the linked list algorithm is allocate memory for the new node assign value to the data field of the new node
define ftdisk,it is a fault tolerance disk driver for windows nt
define gang scheduling,a set of related threads is scheduled to run on a set of processors at the same time on a 1to1 basis closely related threads processes may be scheduled this way to reduce synchronization blocking and minimize process switching group scheduling predated this strategy
what is hybrid kernel,it combines the aspect of both monolithic as well as a microkernelexample microsoft nt kernel
how do you explain a thread,a thread is a basic unit of cpu utilization in general a thread is composed of a thread id program counter register set and the stack
how do you explain jump point search,an optimization to a which may reduce computation time by an order of magnitude using further heuristics
what do you mean by bankers algorithm,bankers algorithm is used to avoid deadlock it is the one of deadlockavoidance method it is named as bankers algorithm on the banking system where bank never allocates available cash in such a manner that it can no longer satisfy the requirements of all of its customers
define breadthfirst search,breadthfirst search bfs is an algorithm for traversing or searching tree or graph data structures
define starvation and aging,starvation is resource management problem where a process does not get the resources it needs for a long time because the resources are being allocated to other processesaging is a technique to avoid starvation in a scheduling system
how do you explain system stack,each process has one or more lifo stacks associated with it used to store parameters and calling addresses for procedure and system calls
what is boyer moore string search algorithm,amortized linear sublinear in most times algorithm for substring search
what do you mean by spectral layout,spectral layout is a class of algorithm for drawing graphs
how do you explain bkm algorithm,for computing a numbers multiplicative inverse reciprocal
what do you mean by rounding functions,the principal nth root of a positive real number a is the positive real solution of the equation
what do you mean by smp,smp is a short form of symmetric multiprocessing it is the most common type of multipleprocessor systems in this system each processor runs an identical copy of the operating system and these copies communicate with one another as needed
define smp,smp is a short form of symmetric multiprocessing it is the most common type of multipleprocessor systems in this system each processor runs an identical copy of the operating system and these copies communicate with one another as needed
what do you mean by polling hellman algorithm,is a specialpurpose algorithm for computing discrete logarithms in a finite abelian group whose order is a smooth integer
how do you explain a folder in ubuntu,there is no concept of folder in ubuntu everything included in your hardware is a file
define jump and walk algorithm,an algorithm for point location in triangulations
how do you explain a realtime system,realtime system is used in the case when rigidtime requirements have been placed on the operation of a processor it contains a well defined and fixed time constraints
what are the tasks performed during postorder traversal,traverse the left subtree traverse the right subtreeprocess the root node
how do you explain a drawback of mvt,it does not have the features like ability to support multiple processorsvirtual storagesource level debuggingwhen the os at the explicit request of another process creates a process this action is called process spawning
what is dangling pointer and how to avoid it,after a call to freep makes a subsequent reference to p illegal ie though the storage to p is freed but the value of paddress remain unchanged so the object at that address may be used as the value of p ie there is no way to detect the illegalityhere p is called dangling pointerto avoid this it is better to set p to null after executing freepthe null pointer value doesnt reference a storage location it is a pointer that doesnt point to anything
what is smp,to achieve maximum efficiency and reliability a mode of operation known as symmetric multiprocessing is used in essence with smp any process or threads can be assigned to any processor
what is synchronization what are the different synchronization mechanisms,synchronization means controlling access to a resource that is available to two or more threads or process different synchronization mechanisms are mutexsemaphoresmonitorscondition variables critical regions and read write locks
what are the types of collision resolution techniques and the methods used in each of the type,open addressing closed hashing the methods used include overflow block closed addressing open hashing the methods used include linked list binary tree
what is selection sorts,convert the list into a heap keep removing the largest element from the heap and adding it to the end of the list
what are the reasons for process suspension,the reasons are swappinginteractive user requesttiming parent process request
list the applications of set adt,maintaining a set of connected components of a graphmaintain list of duplicate copies of web pages constructing a minimum spanning tree for a graph define an equivalence relation
what is a realtime system,realtime system is used in the case when rigidtime requirements have been placed on the operation of a processor it contains a well defined and fixed time constraints
define a daemon,daemon is a program that runs in the background without users interaction a daemon runs in a multitasking operating system like unix a daemon is initiated and controlled by special programs known as processes
what do you mean by worst case space complexity of bubble sort algorithm,o1 auxiliary
define the relationship between a queue and its underlying array,data stored in a queue is actually stored in an array two indexes front and end will be used to identify the start and end of the queuewhen an element is removed front will be incremented by 1 in case it reaches past the last index available it will be reset to 0 then it will be checked with end if it is greater than end queue is emptywhen an element is added end will be incremented by 1 in case it reaches past the last index available it will be reset to 0 after incrementing it will be checked with front if they are equal queue is full
how do you explain merge sort,sort the first and second half of the list separately then merge the sorted lists
what do you mean by virtual memory,virtual memory is a memory management technique for letting processes execute outside of memory this is very useful especially is an executing program cannot fit in the physical memory
how do you explain nth root algorithm,the principal root of a positive real number a is the positive real solution of the equation
how do you explain sorted lists,a sorting algorithm is an algorithm that puts elements of a list in a certain order
what is graph exploration algorithm,in computer science graph traversal also known as graph search refers to the process of visiting checking andor updating each vertex in a graph such traversals are classified by the order in which the vertices are visited
what is the type of the algorithm used in solving the 8 queens problem,backtracking
what do you mean by virtual memory,virtual memory is hardware technique where the system appears to have more memory that it actually does this is done by timesharing the physical memory and storage parts of the memory one disk when they are not actively being used
define pancake sorting,pancake sorting is the colloquial term for the mathematical problem of sorting a disordered stack of pancakes in order of size when a spatula can be inserted at any point in the stack and used to flip all pancakes above it
how do you explain an acyclic graph,a simple diagram which does not have any cycles is called an acyclic graph
how do you explain the idea behind splaying,splaying reduces the total accessing time if the most frequently accessed node is moved towards the root it does not require to maintain any information regarding the height or balance factor and hence saves space and simplifies the code to some extent
how do you explain constant time,constant time if the time needed by the algorithm is the same regardless of the input size eg an access to an array element
what is christofides algorithm,the christofides algorithm is an algorithm for finding approximate solutions to the travelling salesman problem
what do you mean by a virtual memory,virtual memory is a memory management technique for letting processes execute outside of memory this is very useful especially is an executing program cannot fit in the physical memory
define ruperts algorithm,create quality delaunay triangulations
define system stack,each process has one or more lifo stacks associated with it used to store parameters and calling addresses for procedure and system callsprocess control block pcb info needed by the os to control processes
how do you explain shortest path problem,in graph theory the shortest path problem is the problem of finding a path between two vertices or nodes in a graph such that the sum of the weights of its constituent edges is minimized
what do you mean by kasanes algorithm,finds maximum subarray of any size
what do you mean by context switching,context is associated with each process encompassing all the information describing the current execution state of the processwhen the os saves the context of program that is currently running and restores the context of the next ready to run process it is called as context switching it is important for multitasking os
what is floyds cyclefinding algorithm,finds a cycle in function value iterations
what do you mean by balance factor of a node in avl tree,the height of left subtree minus height of right subtree is called balance factor of a node in avl treethe balance factor may be either 0 or 1 or 1the height of an empty tree is 1
list out few of the application of tree datastructure,the manipulation of arithmetic expression symbol table construction syntax analysis
how do you explain impact of signed numbers on the memory,sign of the number is the first bit of the storage allocated for that number so you get one bit less for storing the number for example if you are storing an 8bit number without sign the range is 0255 if you decide to store sign you get 7 bits for the number plus one bit for the sign so the range is 128 to 127
define quick hull,quickhull is a method of computing the convex hull of a finite set of points in the plane
explain the meaning of mutex,mutex is the short form for mutual exclusion object a mutex allows multiple threads for sharing the same resource the resource can be file a mutex with a unique name is created at the time of starting a program a mutex must be locked from other threads when any thread that needs the resource when the data is no longer used needed the mutex is set to unlock
in binary search algorithm after every search operation the search gets reduced by,in binary search algorithm after every search operation the search gets reduced by 14
how do you explain the best case efficiency of binary search,the best case efficiency of binary search is o1
what do you mean by quadratic probing,quadratic probing is an open addressing collision resolution strategy in which fii2 there is no guarantee of finding an empty cell once the table gets half full if the table size is not prime this is because at most half of the table can be used as alternative locations to resolve collisions
define bronkerbosch algorithm,the bronkerbosch algorithm is an algorithm for finding maximal cliques in an undirected graph
what are the advantages of a multiprocessor system,with an increased number of processors there is considerable increase in throughput it can also save more money because they can share resources finally overall reliability is increased as well
define a semaphore,a semaphore is a hardware or a software tag variable whose value indicates the status of a common resource its purpose is to lock the common resource being used a process which needs the resource will check the semaphore to determine the status of the resource followed by the decision for proceeding in multitasking operating systems the activities are synchronized by using the semaphore techniques
what do you mean by plumbing piping,it is the process of using the output of one program as an input to another for example instead of sending the listing of a folder or drive to the main screen it can be piped and sent to a file or sent to the printer to produce a hard copy
define fischeryates shuffle,randomly shuffle a finite set
how do you explain graph exploration algorithm,in computer science graph traversal also known as graph search refers to the process of visiting checking andor updating each vertex in a graph such traversals are classified by the order in which the vertices are visited
what do you mean by pancake sorting,pancake sorting is the colloquial term for the mathematical problem of sorting a disordered stack of pancakes in order of size when a spatula can be inserted at any point in the stack and used to flip all pancakes above it
define gausslegendre algorithm,computes the digits of pi
define a linked list,a linked list is a linear collection of data elements called nodes where the linear order is given by pointers each node has two parts first part contain the information of the element second part contains the address of the next node in the list
how do you explain cipollas algorithm,cipollas algorithm is a technique for solving a congruence of the form
define dram,dynamic ram stores the data in the form of capacitance and static ram stores the data in voltages
what is precision,precision refers the accuracy of the decimal portion of a value precision is the number of digits allowed after the decimal point
what do you mean by unionbyweight,keep track of the weight that is size of each tree and always append the smaller tree to the larger one when performing union
what do you mean by spigot algorithm,a way to compute the value of a mathematical constant without knowing preceding digits
what do you mean by plumbingpiping,it is the process of using the output of one program as an input to another for example instead of sending the listing of a folder or drive to the main screen it can be piped and sent to a file or sent to the printer to produce a hard copy
explain how you can reset unity configuration,to reset the unity configuration the simplest way to do is to hit open a terminal or hit atlf2 and run the command unity reset
what do you mean by the relationship between a queue and its underlying array,data stored in a queue is actually stored in an array two indexes front and end will be used to identify the start and end of the queuewhen an element is removed front will be incremented by 1 in case it reaches past the last index available it will be reset to 0 then it will be checked with end if it is greater than end queue is emptywhen an element is added end will be incremented by 1 in case it reaches past the last index available it will be reset to 0 after incrementing it will be checked with front if they are equal queue is full
what do you mean by continuous algorithms,an algorithm operating on data that represents continuous quantities even though this data is represented by discrete approximationssuch algorithms are studied in numerical analysis or
define path in a graph,the path in a graph is the route taken to reach terminal node from a starting node
how do you explain galegaleshapely algorithm,solves the stable marriage problem
what is demand paging,demand paging is referred when not all of a processs pages are in the ram then the os brings the missingand required pages from the disk into the ram
what do you mean by kernel,kernel is the core of every operating system it connects applications to the actual processing of data it also manages all communications between software and hardware components to ensure usability and reliability
what do you mean by cantorzassenhaus algorithm,factor polynomials over finite fields
how do you explain birkhoff interpolation,an extension of polynomial interpolation
define state space search,state space search is a process used in the field of computer science including artificial intelligence ai in which successive configurations or states of an instance are considered with the intention of finding a goal state with a desired property
what is the use of threaded binary tree,in threaded binary tree the null pointers are replaced by some addresses the left pointer of the node points to its predecessor and the right pointer of the node points to its successor
what is schensted algorithm,constructs a pair of young tableaux from a permutation
how traversing is done in a binary tree,traversing a tree refers to the process of visiting all the nodes of the tree once there are three ways in which traversing is done such as inorder preorder postorder
what is plumbing piping,it is the process of using the output of one program as an input to another for example instead of sending the listing of a folder or drive to the main screen it can be piped and sent to a file or sent to the printer to produce a hard copy
explain compaction,during the process of loading and removal of process into and out of the memory the free memory gets broken into smaller pieces these pieces lie scattered in the memory compaction means movement of these pieces close to each other to form a larger chunk of memory which works as a resource to run larger processes
how do you explain sequence sorting,sorting the data in a sequence
define the use of behavior tab in ubuntu,through behaviors tab you can make many changes on the appearance of the desktopautohide the launcher you can use this option to reveal the launcher when moving the pointer to the defined hot spotenable workspaces by checking this option you can enable workspaceadd show desktop icon to the launcher this option is used to display the desktop icon on the launcher
define level set method,a numerical technique for tracking interfaces and shapes
what do you mean by merge sort,sort the first and second half of the list separately then merge the sorted lists
how do you explain index calculus algorithm,the index calculus algorithm is a probabilistic algorithm for computing discrete logarithms
define a thread,a thread is a program line under execution thread sometimes called a lightweight process is a basic unit of cpu utilization it comprises a thread id a program counter a register set and a stack
define boruvkas algorithm,boruvkas algorithm is a greedy algorithm for finding a minimum spanning tree in a graph for which all edge weights are distinct or a minimum spanning forest in the case of a graph that is not connected
what is the complexity of the bubble sort algorithm,the complexity is on2 the time required to execute the bubble sort algorithm is proportional to n2 where n is the number of input items
define data structure,a data structure is a way of organizing data that considers not only the items stored but also their relationship to each other advance knowledge about the relationship between data items allows designing of efficient algorithms for the manipulation of data
how do you explain the logical address space,logical address specifies the address which is generated by the cpu whereas physical address specifies to the address which is seen by the memory unit
define gospers algorithm,find sums of hypergeometric terms that are themselves hypergeometric terms
what is knuth morris pratt algorithm,substring search which bypasses reexamination of matched characters
how do you explain modular method,in this method modulus operation is applied on each key this involves dividing the key value by the size of the hash table to obtain the remainder of the division the remainder is considered as the address of the record corresponding to the key value
how do you explain a queue,a queue is a sequential organization of data a queue is a first in first out type of data structure an element is inserted at the last position and an element is always taken out from the first position
define bitonic sorter,bitonic mergesort is a parallel algorithm for sorting it is also used as a construction method for building a sorting network
what do you mean by primality tests,determining whether a given number is prime
mention the advantages of representing stacks using linked lists than arrays,it is not necessary to specify the number of elements to be stored in a stack during its declaration since memory is allocated dynamically at run time when an element is added to the stack insertions and deletions can be handled easily and efficiently linked list representation of stacks can grow and shrink in size without wasting memory space depending upon the insertion and deletion that occurs in the list multiple stacks can be represented efficiently using a chain for each stack
what is euclids algorithm,euclids algorithm to compute the greatest common divisor gcd
define time slice,the timer in cpu is set to interrupt every n milliseconds where this n is called the time sliceit is the time each user gets to execute before control is given to next userat the end of each time slice the value of n is incremented and the record is maintainedit also maintains the record of the total time user program has executed thus far this method helps in time sharing among the various users
define floyd warshall algorithm,solves the all pairs shortest path problem in a weighted directed graph
how do you explain modular method,in this method modulus operation is applied on each key this involves dividing the key value by the size of the hash table to obtain the remainder of the division the remainder is considered as the address of the record corresponding to the key value
what do you mean by the worst case performance of binary search,the worst case performance of binary search is olog n
how do you explain phonetic algorithm,a phonetic algorithm is an algorithm for indexing of words by their pronunciation
how do you explain closest pair problem,find the pair of points from a set of points with the smallest distance between them
what are the pros and cons of using circuit switching,the primary advantage of using circuit switching is that it ensures the availability of resources that is it reserves the network resources required for a specific transfer prior to the transmission taking place by doing so it ensures that no packet would be dropped and the required quality of service is met the disadvantage of using circuit switching is that it requires a round trip message to setup a reservation by doing so as it provisions the resources ahead of the transmission it might lead to the suboptimal use of resourcescircuit switching can be implemented for applications that have constant demand for network resources for long periods of time
what is rr scheduling algorithm,rr roundrobin scheduling algorithm is primarily aimed for timesharing systems a circular queue is setup in such a way that the cpu scheduler goes around that queue allocating cpu to each process for a time interval of up to around 10 to 100 milliseconds
what do you mean by jump and walk algorithm,an algorithm for point location in triangulations
give an example of turtle problem in bubble sort,though array 2 3 4 5 1 is almost sorted it takes on2 iterations to sort an array element 1 is a turtle
what is jump and walk algorithm,an algorithm for point location in triangulations
how do you explain virtual memory,virtual memory is hardware technique where the system appears to have more memory that it actually does this is done by timesharing the physical memory and storage parts of the memory one disk when they are not actively being used
give an example of a process state,new state means a process is being createdrunning means instructions are being executedwaiting means a process is waiting for certain conditions or events to occurready means a process is waiting for an instruction from the main processorterminate means a process is done executing
what do you mean by the type of the algorithm used in solving the 8 queens problem,backtracking
what are the various ipc mechanisms,ipc inter process communication various ipc mechanisms are socketspipesshared memorysignals and message queues
what do you mean by an idle thread,the special thread a dispatcher will execute when no ready thread is found
define sorting algorithm,a sorting algorithm is an algorithm that puts elements of a list in a certain order
define average case performance of binary search,the average case performance of binary search is olog n
what is a virtual memory,virtual memory is a memory management technique for letting processes execute outside of memory this is very useful especially is an executing program cannot fit in the physical memory
what is uniform costsearch,a tree search that finds the lowestcost route where costs vary
what is hamming distance,sum number of positions which are different
define fragmentation,fragmentation is memory wasted it can be internal if we are dealing with systems that have fixedsized allocation units or external if we are dealing with systems that have variablesized allocation units
what do you mean by comparison sort,a comparison sort is a type of sorting algorithm that only reads the list elements through a single abstract comparison operation often a less than or equal to operator or a threeway comparison that determines which of two elements should occur first in the final sorted list
what do you mean by bead sort,the bead sort operation can be compared to the manner in which beads slide on parallel poles such as on an abacus
what do you mean by caching,caching is the processing of utilizing a region of fast memory for a limited data and process a cache memory is usually much efficient because of its high access speed
what is string metrics,compute a similarity or dissimilarity distance score between two pairs of text strings
what is laplacian smoothing,an algorithm to smooth a polygonal mesh
how do you explain user data,modifiable part of user space may include program data user stack area and programs that may be modified
what are the goals of data structure,it must rich enough in structure to reflect the actual relationship of data in real world the structure should be simple enough for efficient processing of data
what is closest pair problem,find the pair of points from a set of points with the smallest distance between them
what do you mean by comb sort,the basic idea is to eliminate turtles or small values near the end of the list
list out some reasons for process termination,normal completion time limit exceededmemory unavailablebounds violationprotection errorarithmetic errortime overrunio failureinvalid instructionprivileged instructiondata misuseoperator or os interventionparent termination
what would happen if bubble sort didnt keep track of the number of swaps made on each pass through the list,the algorithm wouldnt know when to terminate as it would have no way of knowing when the list was in sorted order
define the difference between a stack and an array,stack is a ordered collection of itemsstack is a dynamic object whose size is constantly changing as items are pushed and poppedstack may contain different data typesstack is declared as a structure containing an array to hold the element of the stack and an integer to indicate the current stack top within the array array is an ordered collection of itemsarray is a static object ie no of item is fixed and is assigned by the declaration of the arrayit contains same data typesarray can be home of a stack ie array can be declared large enough for maximum size of the stack
how do you explain sequence algorithms,a sequence algorithm is an algorithm 12 that takes one or more linear sequences as inputs
what is a command interpreter,it is a program that interprets the command input through keyboard or command batch file it helps the user to interact with the os and trigger the required system programs or execute some user application command interpreter is also referred to as control card interpretercommand line interpreterconsole command processor and shell
define nearest neighbour algorithm,the nearest neighbour algorithm was one of the first algorithms used to determine a solution to the travelling salesman problem
how is a node searched in binary search tree give algorithm for it,the search operation in binary search tree refers to the process of searching for a specific value in the tree to perform searching a node in binary search tree following algorithm is used make currentnode point to the root node if currentnode is null display not found exit compare the value to be searched with the value of currentnode depending on the result of the comparison there can be three possibilities if the value is equal to the value of currentnode display found exit if the value is less than the value of currentnode make currentnode point to its left child go to step 2 if the value is greater than the value of currentnode make currentnode point to its right child go to step 2
define uniform binary search,an optimization of the classic binary search algorithm
what do you mean by demand paging,demand paging is referred when not all of a processs pages are in the ram then the os brings the missingand required pages from the disk into the ram
how do you explain logical and physical addresses space,logical address space is generated from cpu it bound to a separate physical address space is central to proper memory management physical address space is seen by the memory unit logical address space is virtual address space both these address space will be same at compile time but differ at execution time
how do you explain difference between straight forward recursion and dynamic recursion,the difference between dynamic programming and straightforward recursion is in caching or memoization of recursive calls
what is the worst case performance of binary search,the worst case performance of binary search is olog n
define lagrange interpolation,interpolation using lagrange polynomials
what do you mean by precision,precision refers the accuracy of the decimal portion of a value precision is the number of digits allowed after the decimal point
what are device drivers,device drivers provide a standard means of representing io devices that maybe manufactured by different companies this prevents conflicts whenever such devices are incorporated in a systems unit
how do you explain multitasking,multitasking is the process within an operating system that allows the user to run several applications at the same time however only one application is active at a time for user interaction although some applications can run behind the scene
define traveling salesman problem,given a list of cities and the distances between each pair of cities what is the shortest possible route that visits each city and returns to the origin city
what is library sort,library sort or gapped insertion sort is a sorting algorithm that uses an insertion sort but with gaps in the array to accelerate subsequent insertions
what is page cannibalizing,page swapping or page replacements are called page cannibalizing
what is las vegas algorithm,las vegas algorithm is a randomized algorithm that always gives correct results that is it always produces the correct result or it informs about the failure
what is substring search,stringsearching algorithms sometimes called stringmatching algorithms are an important class of string algorithms that try to find a place where one or several strings also called patterns are found within a larger string or text
mention one advantage and disadvantage of using quadratic probing,advantage the problem of primary clustering is eliminateddisadvantage there is no guarantee of finding an unoccupied cell once the table is nearly half full
what is the worst case performance of binary search,the worst case performance of binary search is olog n
define brute force,this is the naive method of trying every possible solution to see which is best
write the advantage of separate chaining,more number of elements can be inserted as it uses linked lists
list out the areas in which data structures are applied extensively,compiler design operating systemdatabase management systemstatistical analysis packagenumerical analysisgraphicsartificial intelligencesimulation
it is a technique in which the operating system periodically collects all the deleted space onto the free storage listit takes place when there is minimum amount of space left in storage list or when cpu is ideal,the alternate method to this is to immediately reinsert the space into free storage list which is time consuming
what do you mean by level of a node,level of a node the distance of a node from the root is called the level of a node the root always lies at level 0 as move down the tree the level of a node increases in such a way that if a node is at level n then its children are at level n1 in preceding figure level of node 1 is 0 level of nodes 7 and 3 are 1 and so on
how do you explain data structure,a data structure is a way of organizing data that considers not only the items stored but also their relationship to each other advance knowledge about the relationship between data items allows designing of efficient algorithms for the manipulation of data
how do you explain pollards p1 algorithm,it is a specialpurpose algorithm meaning that it is only suitable for integers with specific types of factors it is the simplest example of an algebraicgroup factorisation algorithm
what is cachecoherency,in a multiprocessor system there exist several caches each may containing a copy of same variable a then a change in one cache should immediately be reflected in all other caches this process of maintaining the same value of a data in all the caches s called cachecoherency
define the zombie process,a zombie process is a process which has completed and in the terminated state but has its entry in the process table it shows that the resources are held by the process and are not free
how do you explain dead lock,deadlock is a situation or condition where the two processes are waiting for each other to complete so that they can start this result both the processes to hang
what do you mean by average case performance of binary search,the average case performance of binary search is olog n
how do you explain fibonacci search technique,search a sorted sequence using a divide and conquer algorithm that narrows down possible locations with the aid of fibonacci numbers
what are interrupts,interrupts are part of a hardware mechanism that sends a notification to the cpu when it wants to gain access to a particular resource an interrupt handler receives this interrupt signal and tells the processor to take action based on the interrupt request
what is the translation lookaside buffer tlb,in a cached system the base addresses of the last few referenced pages is maintained in registers called the tlb that aids in faster lookup tlb contains those pagetable entries that have been most recently used normally each virtual memory reference causes 2 physical memory accesses one to fetch appropriate pagetable entry and one to fetch the desired data using tlb
define worst case and average case of bubble sort algorithm,worst case on2 and average case on2
what phonetic algorithm,a phonetic algorithm is an algorithm for indexing of words by their pronunciation
what actions are performed when a function returns,return address is retrievedfunctions data area is freedbranch is taken to the return address
define linear time,linear time if the time is proportional to the input size eg the traverse of a list
how do you explain a binary semaphore what is its use,a binary semaphore is one which takes only 0 and 1 as values they are used to implement mutual exclusion and synchronize concurrent processes
what do you mean by worst case space complexity of bubble sort algorithm,o1 auxiliary
define virtual memory,virtual memory is a memory management technique for letting processes execute outside of memory this is very useful especially is an executing program cannot fit in the physical memory
how do you explain worst case and average case of bubble sort algorithm,worst case on2 and average case on2
define a undirected graph,a graph in which every edge is undirected is called a directed graph
what is jarowinkler distance,it is a measure of similarity between two strings
what is spaghetti sort,this algorithm sorts a sequence of items requiring on stack space in a stable manner it requires a parallel processor
how do you explain krauss matching wildcards algorithm,an opensource nonrecursive algorithm
define microkernel,it is kernel with a limited service that is with some important services runningexample qnxrealtime os
what has triggered the need for multitasking in pcs,increased speed and memory capacity of microprocessors together with the support fir virtual memory and growth of client server computing
how do you explain timestamping,it is a technique proposed by lamport used to order events in a distributed system without the use of clocks this scheme is intended to order events consisting of the transmission of messages each system i in the network maintains a counter ci every time a system transmits a message it increments its counter by 1 and attaches the timestamp ti to the message when a message is received the receiving system j sets its counter cj to 1 more than the maximum of its current value and the incoming timestamp ti at each site the ordering of messages is determined by the following rules for messages x from site i and y from site j x precedes y if one of the following conditions holdsa if titj or b if titj and ij
what is a simple path,a path in a diagram inwhich the edges are distinct is called a simple path it is also called as edge simple
define a socket,a socket provides a connection between two applications each endpoint of a communication is a socket
what is multiplicative inverse algorithms,an approximation of the squareroot of the sum of two squares
explain pcb,pcb process control block is also called as the task control blockit contains information about the process state like new ready running waiting and haltit also includes the information regarding the process priority and pointers to scheduling queues its counter indicates the address of the next instruction to be executed for the processit basically serves as the storage for any information that may vary from process to process
define user program,the instructions to be executed
how do you explain point in polygon algorithms,find the nearest point or points to a query point
how do you explain a compiler,a compiler is a program that takes a source code as an input and converts it into an object code during the compilation process the source code goes through lexical analysis parsing and intermediate code generation which is then optimized to give final output as an object code
how is the front of the queue calculated,the front of the queue is calculated by front front1 size
what do you mean by selection sorts,convert the list into a heap keep removing the largest element from the heap and adding it to the end of the list
how do you explain toomcook algorithm,it is a multiplication algorithm for large integers
what is merge sort,sort the first and second half of the list separately then merge the sorted lists
what do you mean by karatsuba algorithm,the karatsuba algorithm is a fast multiplication algorithm
how is approximation reached,the approximation can be reached by either using a deterministic or a random strategy such algorithms have practical value for many hard problems
what do you mean by bkm algorithm,for computing a numbers multiplicative inverse reciprocal
what do you mean by the purpose of batch operating system,all jobs are submitted at once and are executed in a particular order with any preemption which means that no jobs can be taken unless these complete
what do you mean by an assembler,an assembler acts as a translator for lowlevel language assembly codes written using mnemonic commands are translated by the assembler into machine language
what do you mean by an algorithm,an algorithm is an unambiguous specification of how to solve a class of problems
what is birkhoff interpolation,an extension of polynomial interpolation
give examples of approximate algorithms,one of the examples of an approximate algorithm is the knapsack problem
how do you explain timsort,adaptative algorithm derived from merge sort and insertion sort used in python 23 and up and java se 7
what is heaps permutation generation algorithm,interchange elements to generate next permutation
what is point set registration algorithms,finds the transformation between two point sets to optimally align them
what do you mean by back tracking approach,in this approach multiple solutions are built incrementally and abandoned when it is determined that they cannot lead to a valid full solution
what is euler method,eulers method is a numerical method to solve first order first degree differential equation with a given initial value it is the most basic explicit method for numerical integration of ordinary differential equations and is the simplest rungekutta method
define chudnovsky algorithm,a fast method for calculating the digits of p
how do you explain schreiersims algorithms,computing a base and strong generating set bsgs of a permutation group
define cachecoherency,in a multiprocessor system there exist several caches each may containing a copy of same variable a then a change in one cache should immediately be reflected in all other caches this process of maintaining the same value of a data in all the caches s called cachecoherency
define ancestor and descendant,an expression tree is a tree which is build from infix or prefix or postfix expression generally in such a tree the leaves are operands and other nodes are operators
define euclidean shortest path problem,find the shortest path between two points that does not intersect any obstacle
what do you mean by bronkerbosch algorithm,the bronkerbosch algorithm is an algorithm for finding maximal cliques in an undirected graph
how do you define tree in a data structure,a tree is a nonlinear data structure that represents a hierarchical relationship among the various data elements as shown in the following figure each data elements in a tree is called a node the topmost node of the tree is called a root
what do you mean by busy waiting,the repeated execution of a loop of code while waiting for an event to occur is called busywaiting the cpu is not engaged in any real productive activity during this period and the process does not progress toward completion
how do you explain uniform binary search,an optimization of the classic binary search algorithm
list out the applications of a linked list,some of the important applications of linked lists are manipulation of polynomials sparse matrices stacks and queues
define marshalling,the process of packaging and sending interface method parameters across thread or process boundaries
what do you mean by the worst case space complexity of selection sort,the worst case space complexity of selection sort is on total o1 auxiliary
what do you mean by tree search,tree traversal also known as tree search is a form of graph traversal and refers to the process of visiting checking andor updating each node in a tree data structure exactly once
what do you mean by sorted lists,a sorting algorithm is an algorithm that puts elements of a list in a certain order
what do you mean by schensted algorithm,constructs a pair of young tableaux from a permutation
name the different types of memory,main memory also called primary memory or ramsecondary memory or backing storage cache and internal process memory
what do you mean by short term scheduler,short term scheduler also know as a dispatcher executes most frequently and makes the finestgrained decision of which process should execute next this scheduler is invoked whenever an event occurs it may lead to interruption of one process by preemption
what do you mean by time slice,the timer in cpu is set to interrupt every n milliseconds where this n is called the time sliceit is the time each user gets to execute before control is given to next userat the end of each time slice the value of n is incremented and the record is maintainedit also maintains the record of the total time user program has executed thus far this method helps in time sharing among the various users
define parent node,the node which is having further subbranches is called the parent node of those subbrancheshere c is the parent node of d and e
define preemptive and nonpreemptive scheduling,preemptive scheduling the preemptive scheduling is prioritized the highest priority process should always be the process that is currently utilizednonpreemptive scheduling when a process enters the state of running the state of that process is not deleted from the scheduler until it finishes its service time
how do you explain counting sort,counting sort is an algorithm for sorting a collection of objects according to keys that are small integers that is it is an integer sorting algorithm
what is gui,gui is short for graphical user interface it provides users with an interface wherein actions can be performed by interacting with icons and graphical symbols people find it easier to interact with the computer when in a gui especially when using the mouse instead of having to remember and type commands users click on buttons to perform a process
what do you mean by gausslegendre algorithm,computes the digits of pi
what do you mean by b,in computer science b pronounced b star is a bestfirst graph search algorithm that finds the leastcost path from a given initial node to any goal node out of one or more possible goals
define kernel,kernel is the core and essential part of computer operating system that provides basic services for all parts of os
what is schonhagestrassen algorithm,the schnhagestrassen algorithm is an asymptotically fast multiplication algorithm for large integers
how do you explain decrease and conquer algorithms,a simpler variant of divide and conquer is called a decrease and conquer algorithm that solves an identical subproblem and uses the solution of this subproblem to solve the bigger problem
define system stack,each process has one or more lifo stacks associated with it used to store parameters and calling addresses for procedure and system calls
what do you mean by online algorithm,an online algorithm is one that can process its input piecebypiece in a serial fashion ie in the order that the input is fed to the algorithm without having the entire input available from the beginning
what is a kernel,kernel is the part of os which handles all details of sharing resources and device handlingit can be considered as the core of os which manages the core features of an osits purpose is to handle the communication between software and hardwareits services are used through system calls and a layer of software called shell wraps around the kernel
define incremental heuristic search algorithm,incremental heuristic search algorithms combine both incremental and heuristic search to speed up searches of sequences of similar search problems which is important in domains that are only incompletely known or change dynamically
define gui,gui is short for graphical user interface it provides users with an interface wherein actions can be performed by interacting with icons and graphical symbols people find it easier to interact with the computer when in a gui especially when using the mouse instead of having to remember and type commands users just click on buttons to perform a process
define cone algorithm,identify surface points
classify algorithm,an algorithm is an unambiguous specification of how to solve a class of problems
what do you mean by exponentiating by squaring,a way to compute the value of a mathematical constant without knowing preceding digits
what are the objectives of studying data structures,to identify and create useful mathematical entities and operations to determine what classes of problems can be solved using these entities and operationsto determine the representation of these abstract entities and to implement the abstract operations on these concrete representation
define plumbingpiping,it is the process of using the output of one program as an input to another for example instead of sending the listing of a folder or drive to the main screen it can be piped and sent to a file or sent to the printer to produce a hard copy
what do you mean by process migration,it is the transfer of sufficient amount of the state of process from one machine to the target machine
what do you mean by zhu takaoka string matching algorithms,searches multiple patterns efficiently
what do you mean by a data register,data registers can be assigned to a variety of functions by the programmer they can be used with any machine instruction that performs operations on data
define strongly connected components,in the mathematical theory of directed graphs a graph is said to be strongly connected or diconnected if every vertex is reachable from every other vertex
what is a spanning tree,a spanning tree is a tree associated with a network all the nodes of the graph appear on the tree once a minimum spanning tree is a spanning tree organized so that the total edge weight between nodes is minimized
what is a trap and trapdoor,trapdoor is a secret undocumented entry point into a program used to grant access without normal methods of access authentication a trap is a software interrupt usually the result of an error condition
define nos,nos is short for network operating system it is a specialized software that will allow a computer to communicate with other devices over the network including filefolder sharing
define substring search,stringsearching algorithms sometimes called stringmatching algorithms are an important class of string algorithms that try to find a place where one or several strings also called patterns are found within a larger string or text
what do you mean by binary search tree,a binary search tree is a binary tree in which the value of the left child of a node is always less than the value of the node and the value of the right child of a node is always greater than the value of the node
define plumbing piping,it is the process of using the output of one program as an input to another for example instead of sending the listing of a folder or drive to the main screen it can be piped and sent to a file or sent to the printer to produce a hard copy
how do you explain semaphore,semaphore is a variable whose status reports common resource semaphore is of two types one is binary semaphore and other is counting semaphore
how do you explain cascading termination,if one process is terminated its related processes are also terminated abnormally then it is called cascade terminationit occurs in the case of parent child processif the parent process is terminated normally or abnormally then all its child processes must be terminatedthe parent is existing and the operating system does not allow a child to continue if its parent terminatesthis child process is the new process created by the process called the parent process
define preemptive multitasking,preemptive multitasking allows an operating system to switch between software programs this in turn allows multiple programs to run without necessarily taking complete control over the processor and resulting in system crashes
do bubble sort and selection sort have quadratic order of growth,yes bubble sort and selection sort have quadratic order of growth
define shoe lace algorithm,determine the area of a polygon whose vertices are described by ordered pairs in the plane
how do you explain absolute path,relative path is relative to the current path
define cycle stealing,we encounter cycle stealing in the context of direct memory access dma either the dma controller can use the data bus when the cpu does not need it or it may force the cpu to temporarily suspend operation the latter technique is called cycle stealing note that cycle stealing can be done only at specific break points in an instruction cycle
how do you explain an edge,edge a link from the parent to the child node is referred to as edge it is also known as a branch a tree with n nodes has n1 edges
define longest increasing subsequence problem,find the longest increasing subsequence of a given sequence
what are the advantages of modularity,it is much easier to debug small routines than large routinesit is easier for several people to work on a modular program simultaneouslya wellwritten modular program places certain dependencies in only one routine making changes easier
define knuthbendix completion algorithm,for rewriting rule system
what do you mean by backward euler method,in numerical analysis and scientific computing the backward euler method or implicit euler method is one of the most basic numerical methods for the solution of ordinary differential equations
what do you mean by beladys anomaly,beladys anomaly is also called fifo anomaly usually on increasing the number of frames allocated to a process virtual memory the process execution is faster because fewer page faults occur sometimes the reverse happens ie the execution time increases even when more frames are allocated to the process this is beladys anomaly this is true for certain page reference patterns
what is data structure,a data structure is a way of organizing data that considers not only the items stored but also their relationship to each other advance knowledge about the relationship between data items allows designing of efficient algorithms for the manipulation of data
define busy waiting,the repeated execution of a loop of code while waiting for an event to occur is called busywaiting the cpu is not engaged in any real productive activity during this period and the process does not progress toward completion
what is virtual memory,virtual memory is a very useful memory management technique which enables processes to execute outside of memory this technique is especially used when an executing program cannot fit in the physical memory
how do you explain linear search,finds an item in an unsorted sequence
how do you explain fischeryates shuffle,randomly shuffle a finite set
what do you mean by a,a pronounced a star is a computer algorithm that is widely used in pathfinding and graph traversal which is the process of finding a path between multiple points called nodes
what is shifting nthroot algorithm,digit by digit root extraction
what do you mean by recursive algorithm,a recursive algorithm is one that invokes or makes reference to itself repeatedly until a certain condition
define nearest neighbour search,the arbitrarily oriented minimum bounding box is the minimum bounding box calculated subject to no constraints as to the orientation of the result
what is the basic function of paging,paging is a memory management scheme that permits the physicaladdress space of a process to be noncontiguous it avoids the considerable problem of having to fit varied sized memory chunks onto the backing store
a deadlock situation can arise if the following four conditions hold simultaneously in a system,mutual exclusionhold and waitno preemption circularwaitit is not possible to have circular wait with only one process thus failing a necessary condition for circular wait there is no second process to form a circle with the first one so it is not possible to have a deadlock involving only one process
what are the advantages of multiprocessor system,systems which have more than one processor are called multiprocessor system these systems are also known as parallel systems or tightly coupled systems
how do you explain a linked list,a linked list is a linear collection of data elements called nodes where the linear order is given by pointers each node has two parts first part contain the information of the element second part contains the address of the next node in the list
what do you mean by a spanning tree,a spanning tree is a tree associated with a network all the nodes of the graph appear on the tree once a minimum spanning tree is a spanning tree organized so that the total edge weight between nodes is minimized
define root partition,root partition is where the operating system kernel is located it also contains other potentially important system files that are mounted during boot time
how can you classify algorithms by complexity,algorithms can be classified by the amount of time they need to complete compared to their input size
what do you mean by boyer moore string search algorithm,amortized linear sublinear in most times algorithm for substring search
define tonellishanks algorithm,the tonellishanks algorithm referred to by shanks as the ressol algorithm is used in modular arithmetic to solve for r in a congruence of the form r2 n mod p where p is a prime that is to find a square root of n modulo p
define pigeonhole sort,pigeonhole sorting is a sorting algorithm that is suitable for sorting lists of elements where the number of elements n and the length of the range of possible key values n are approximately the same
what are the types semaphore,there are two types of semaphore they are binary semaphorescounting semaphores
what is a minimum spanning tree,a minimum spanning tree of an undirected graph g is a tree formed from graph edges that connects all the vertices of g at the lowest total cost
what do you mean by context switching,transferring the control from one process to other process requires saving the state of the old process and loading the saved state for new process this task is known as context switching
how do you explain steinhausjohnsontrotter algorithm,generate permutations by transposing elements
explain how to access terminal,to access terminal you have to go under application menu accessories terminal
what do you mean by phonetic algorithm,a phonetic algorithm is an algorithm for indexing of words by their pronunciation
what do you mean by a folder in ubuntu,there is no concept of folder in ubuntu everything included in your hardware is a file
define load sharing,processes are not assigned to a particular processor a global queue of threads is maintained each processor when idle selects a thread from this queue note that load balancing refers to a scheme where work is allocated to processors on a more permanent basis
how do you explain set division,compute elementary functions using a table of logarithms
what is modular method,in this method modulus operation is applied on each key this involves dividing the key value by the size of the hash table to obtain the remainder of the division the remainder is considered as the address of the record corresponding to the key value
what do you mean by the use of paging in operating system,paging is used to solve the external fragmentation problem in operating system this technique ensures that the data you need is available as quickly as possible
a min heap is used to sort the list in which order,a min heap is used to sort the list in descending order
what is memorymanagement unit mmu,hardware device that maps virtual to physical address in mmu scheme the value in the relocation register is added to every address generated by a user process at the time it is sent to memorythe user program deals with logical addresses it never sees the real physical addresses
how do you explain the difference between process and program,a program while running or executing is known as a process
what do you mean by cycle stealing,we encounter cycle stealing in the context of direct memory access dma either the dma controller can use the data bus when the cpu does not need it or it may force the cpu to temporarily suspend operation the latter technique is called cycle stealing note that cycle stealing can be done only at specific break points in an instruction cycle
what do you mean by a zombie process,these are dead processes which are not yet removed from the process table it happens when the parent process has terminated while the child process is still running this child process now stays as a zombie
what are the process and process table,a process can be called as a program which is in execution a web browser a shell script running all can be considered as a process the job of an operating system is to manage all these processes it also allocates the processes a certain amount of time to all processes along with this the operating system will also allocate various resources that will process computer memory and disks to be in sync with all these processes the operating system maintains a process table the table has information about every process which is listed with the resources the processes that are being used and the current state of the process
how do you explain a command interpreter,it is a program that interprets the command input through keyboard or command batch file it helps the user to interact with the os and trigger the required system programs or execute some user application command interpreter is also referred to as control card interpretercommand line interpreterconsole command processor and shell
what is dijkstras algorithm,dijkstras algorithm is an algorithm for finding the shortest paths between nodes in a graph which may represent
what is spanning tree,in the mathematical field of graph theory a spanning tree t of an undirected graph g is a subgraph that is a tree which includes all of the vertices of g with minimum possible number of edges
which is the fundamental principle of hashing,the fundamental principle of hashing is to convert a given key value to an offset address to retrieve a record
what do you mean by chews second algorithm,create quality constrained delaunay triangulations
define the logical address space,logical address specifies the address which is generated by the cpu whereas physical address specifies to the address which is seen by the memory unit
define the data structures used to perform recursion,stack because of its lifo last in first out property it remembers its caller so knows whom to return when the function has to return recursion makes use of system stack for storing the return addresses of the function calls
what do you mean by overflow and underflow,when new data is to be inserted into the data structure but there is no available space ie free storage list is empty this situation is called overflowwhen we want to delete data from a data structure that is empty this situation is called underflow
define context switching,transferring the control from one process to other process requires saving the state of the old process and loading the saved state for new process this task is known as context switching
what is multiplication algorithms,fast multiplication of two numbers
how do you explain a trap and trapdoor,trapdoor is a secret undocumented entry point into a program used to grant access without normal methods of access authentication a trap is a software interrupt usually the result of an error condition
define indegree of a graph,in a directed graph for any node v the number of edges which have v as their terminal node is called the indegree of the node v
how do you solve the problem of chess,using graphs
how do you explain a spanning tree,a spanning tree is a tree associated with a network all the nodes of the graph appear on the tree once a minimum spanning tree is a spanning tree organized so that the total edge weight between nodes is minimized
what do you mean by a sibling,siblingsbrothers children of the same node are called siblings of each other in the preceding figurenodes 7 and 3 are siblings of each othernodes 2 and 6 are siblings of each other
how do you explain degree of a node,degree of a node the number of subtrees of a node is called the degree of a node
what is breadthfirst search,breadthfirst search bfs is an algorithm for traversing or searching tree or graph data structures
what is the purpose of an io status information,io status information provides info about which io devices are to be allocated for a particular process it also shows which files are opened and other io device state
how do you explain a minimum spanning tree,a minimum spanning tree of an undirected graph g is a tree formed from graph edges that connects all the vertices of g at the lowest total cost
define push relabel algorithm,computes a maximum flow in a graph
how do you explain alpha max plus beta min algorithm,an approximation of the squareroot of the sum of two squares
what complications does concurrent processing add to an operating system,a time sharing method must be implemented to allow multiple processes to have an access to the system this will involve the preemption of processes that do not give up cpu on their own ie more than one process may be executing kernel code simultaneouslythe amount of resources that a process can use and the operations that it may perform must be limited the system resources and the processes must be protected from each otherkernel must be designed to prevent deadlocks between the various processes ie cyclic waiting or hold and waiting must not occureffective memory management techniques must be used to better utilize the limited resources
define kernel,kernel is the core and most important part of a computer operating system which provides basic services for all parts of the os
what do you mean by pollards kangaroo algorithm,an algorithm for solving the discrete logarithm problem
what are the most challenging aspects of algorithm design,important aspects of algorithm design is creating an algorithm that has an efficient runtime
how do you test euclids algorithms,proof of program correctness by use of mathematical induction
what is euclidean shortest path problem,find the shortest path between two points that does not intersect any obstacle
how are the waitsignal operations for monitor different from those for semaphores,if a process in a monitor signal and no task is waiting on the condition variable the signal is lost so this allows easier program design whereas in semaphores every operation affects the value of the semaphore so the wait and signal operations should be perfectly balanced in the program
how do you explain johnsons algorithm,all pairs shortest path algorithm in sparse weighted directed graph
define predictive search,binarylike search which factors in magnitude of search term versus the high and low values in the search sometimes called dictionary search or interpolated search
what do you mean by page cannibalizing,page swapping or page replacements are called page cannibalizing
define average case performance of binary search,the average case performance of binary search is olog n
what do you mean by smooth sort,like heapsort smoothsort is an inplace algorithm with an upper bound of on log n2 but it is not a stable
how do you explain process migration,it is the transfer of sufficient amount of the state of process from one machine to the target machine
what do you mean by spooling,spooling is normally associated with printing when different applications want to send an output to the printer at the same time spooling takes all of these print jobs into a disk file and queues them accordingly to the printer
what do you mean by suffix trees,a suffix tree also called pat tree or in an earlier form position tree is a compressed trie containing all the suffixes of the given text as their keys and positions in the text as their values suffix trees allow particularly fast implementations of many important string operationsan opensource nonrecursive algorithm
what is shortest common super sequence problem,find the shortest supersequence that contains two or more sequences as subsequences
define starvation in operating system,starvation is resource management problem in this problem a waiting process does not get the resources it needs for a long time because the resources are being allocated to other processes
define a spanning tree,a spanning tree is a tree associated with a network all the nodes of the graph appear on the tree once a minimum spanning tree is a spanning tree organized so that the total edge weight between nodes is minimized
what is worst case and average case of bubble sort algorithm,worst case on2 and average case on2
why is round robin algorithm considered better than first come first served algorithm,the first come first served algorithm is the simplest scheduling algorithm known the processes are assigned to the cpu on the basis of their arrival time in the ready queue since it is nonpreemptive once a process is assigned to the cpu it will run till completion since a process takes the cpu till it is executed it is not very good in providing good response times it can make other important processes wait unnecessarily
how do you explain sequential search,in sequential search each item in the array is compared with the item being searched until a match occurs it is applicable to a table organized either as an array or as a linked list
how do you explain a data register,data registers can be assigned to a variety of functions by the programmer they can be used with any machine instruction that performs operations on data
define euler method,eulers method is a numerical method to solve first order first degree differential equation with a given initial value it is the most basic explicit method for numerical integration of ordinary differential equations and is the simplest rungekutta method
what is jump point search,an optimization to a which may reduce computation time by an order of magnitude using further heuristics
define merge algorithm,merge algorithms are a family of algorithms that take multiple sorted lists as input and produce a single list as output containing all the elements of the inputs lists in sorted order
what is risch algorithm,an algorithm for the calculus operation of indefinite integration ie finding antiderivatives
what do you mean by introsoft,begin with quicksort and switch to heapsort when the recursion depth exceeds a certain level
there are 8 15 13 14 nodes were there in 4 different trees which of them could have formed a full binary tree,in general there are 2n1 nodes in a full binary tree by the method of elimination
define page cannibalizing,page swapping or page replacements are called page cannibalizing
how do you explain insertion sort,determine where the current item belongs in the list of sorted ones and insert it there
how do you explain dispatcher,dispatcher module gives control of the cpu to the process selected by the shortterm scheduler this involves switching context switching to user mode jumping to the proper location in the user program to restart that program dispatch latency time it takes for the dispatcher to stop one process and start another running
what is matching wildcards,an algorithm for matching wildcards also known as a globbing is useful in comparing text strings that may contain wildcard syntax
define a data register,data registers can be assigned to a variety of functions by the programmer they can be used with any machine instruction that performs operations on data
how does dynamic loading aid in better memory space utilization,with dynamic loading a routine is not loaded until it is called this method is especially useful when large amounts of code are needed in order to handle infrequently occurring cases such as error routines
what do you mean by degree of a node,degree of a node the number of subtrees of a node is called the degree of a node
what is general problem solver,any problem that can be expressed as a set of wellformed formulas wffs or horn clauses and that constitute a directed graph with one or more sources viz axioms and sinks viz desired conclusions can be solved
define a weighted graph,a graph in which weights are assigned to every edge is called a weighted graph
what is floydwarshall algorithm,the shortest path to a goal from a vertex in a weighted graph can be found by using the shortest path to the goal from all adjacent vertices
how do you explain the purpose of an io status information,io status information provides info about which io devices are to be allocated for a particular process it also shows which files are opened and other io device state
what is fragmentation,fragmentation is memory wasted it can be internal if we are dealing with systems that have fixedsized allocation units or external if we are dealing with systems that have variablesized allocation units
what do you mean by nos,nos is short for network operating system it is a specialized software that will allow a computer to communicate with other devices over the network including filefolder sharing
what is the zombie process,a zombie process is a process which has completed and in the terminated state but has its entry in the process table it shows that the resources are held by the process and are not free
how do you explain christofides algorithm,the christofides algorithm is an algorithm for finding approximate solutions to the travelling salesman problem
define geometric hashing,a method for efficiently finding twodimensional objects represented by discrete points that have undergone an affine transformation
define monte carlo algorithm,in computing a monte carlo algorithm is a randomized algorithm whose output may be incorrect with a certain typically small probability
is pointer a variable,yes it is a pointer is a variable and can be used as an element of a structure and as an attribute of a class in some programming languages such as c but not java however the contents of a pointer is a memory address of another location of memory which is usually the memory address of another variable element of a structure or attribute of a class
how do you explain cocktail shaker sort,a bubble sort traversing the list alternately from front to back and back to front
define a priority queue,the priority queue is a data structure in which the intrinsic ordering of the elements numeric or alphabetic determines the result of its basic operation it is of two typesthey are ascending priority queue here smallest item can be removed insertion is arbitrarydescending priority queue here largest item can be removed insertion is arbitrary
what do you mean by 234 tree,a btree of order 4 is called 234 tree a btree of order 4 is a tree that is not binary with the following structural properties the root is either a leaf or has between 2 and 4 childrenall nonleaf nodes except the root have between 2 and 4 children all leaves are at the same depth
what is aging in operating system,aging is a technique used to avoid the starvation in resource scheduling system
what do you mean by kruscals algorithm,kruskals algorithm is a minimumspanningtree algorithm which finds an edge of the least possible weight that connects any two trees in the forest
how do you explain dedicated processor assignment,provides implicit scheduling defined by assignment of threads to processors for the duration of program execution each program is allocated a set of processors equal in number to the number of threads in the program processors are chosen from the available pool
how do you explain demand paging,demand paging is referred when not all of a processs pages are in the ram then the os brings the missingand required pages from the disk into the ram
what is busy waiting,the repeated execution of a loop of code while waiting for an event to occur is called busywaiting the cpu is not engaged in any real productive activity during this period and the process does not progress toward completion
what is smp,to achieve maximum efficiency and reliability a mode of operation known as symmetric multiprocessing is used in essence with smp any process or threads can be assigned to any processor
how do you explain the use of behavior tab in ubuntu,through behaviors tab you can make many changes on the appearance of the desktopautohide the launcher you can use this option to reveal the launcher when moving the pointer to the defined hot spotenable workspaces by checking this option you can enable workspaceadd show desktop icon to the launcher this option is used to display the desktop icon on the launcher
how do you explain b,in computer science b pronounced b star is a bestfirst graph search algorithm that finds the leastcost path from a given initial node to any goal node out of one or more possible goals
what is polynomial time,polynomial time if the time is a power of the input size eg the bubble sort algorithm has quadratic time complexity
differentiate internal commands from external commands,internal commands are builtin commands that are already part of the operating system external commands are separate file programs that are stored in a separate folder or directory
define wait time,this is the time that a process spends for its turn to get executed
define sample sort,samplesort is a sorting algorithm that is a divide and conquer algorithm often used in parallel processing systems
define sweep line algorithm,plane sweep algorithm is an algorithmic paradigm that uses a conceptual sweep line or sweep surface to solve various problems in euclidean space
how do you explain the complexity of the bubble sort algorithm,the complexity is on2 the time required to execute the bubble sort algorithm is proportional to n2 where n is the number of input items
how do you explain discrete logarithm,the discrete logarithm logb a is an integer k such that bk a
what do you mean by user program,the instructions to be executed
how do you explain scsi,scsi small computer systems interface is a type of interface used for computer components such as hard drives optical drives scanners and tape drives it is a competing technology to standard ide integrated drive electronics
what do you mean by the use of behavior tab in ubuntu,through behaviors tab you can make many changes on the appearance of the desktopautohide the launcher you can use this option to reveal the launcher when moving the pointer to the defined hot spotenable workspaces by checking this option you can enable workspaceadd show desktop icon to the launcher this option is used to display the desktop icon on the launcher
define kernel,kernel is the core of every operating system it connects applications to the actual processing of data it also manages all communications between software and hardware components to ensure usability and reliability
what is preemptive multitasking,preemptive multitasking allows an operating system to switch between software programs this in turn allows multiple programs to run without necessarily taking complete control over the processor and resulting in system crashes
what is flash sort,flashsort is a distribution sorting algorithm showing linear computational complexity for uniformly distributed data sets and relatively little additional memory requirement
define depth of a tree,depth of a tree the maximum number of levels in a tree is called the depth of a tree in other words depth of a tree is one more than maximum level of the tree the depth of a tree in above figure is 4
define meant by binary tree traversal,traversing a binary tree means moving through all the nodes in the binary tree visiting each node in the tree only once
define primss algorithm,prims also known as jarnks algorithm is a greedy algorithm that finds a minimum spanning tree for a weighted undirected graph
how do you explain a long term scheduler short term schedulers,long term schedulers are the job schedulers that select processes from the job queue and load them into memory for execution the short term schedulers are the cpu schedulers that select a process from the ready queue and allocate the cpu to one of them
how do you explain chews second algorithm,create quality constrained delaunay triangulations
what is time slice,the timer in cpu is set to interrupt every n milliseconds where this n is called the time sliceit is the time each user gets to execute before control is given to next userat the end of each time slice the value of n is incremented and the record is maintainedit also maintains the record of the total time user program has executed thus far this method helps in time sharing among the various users
what are some pros and cons of a command line interface,a command line interface allows the user to type in commands that can immediately provide results many seasoned computer users are well accustomed to using the command line because they find it quicker and simpler the main problem with a command line interface is that users have to be familiar with the commands including the switches and parameters that come with it this is a downside for people who are not fond of memorizing commands
how do you define binary search,a binary search or halfinterval search finds the position of a specified value the input key within a sorted array binary search is applied only on the list which is sorted and if the list to be searched is not sorted it needs to be sorted before binary search can be applied to it
what is root partition,root partition is where the operating system kernel is located it also contains other potentially important system files that are mounted during boot time
define the resident set and working set of a process,resident set is that portion of the process image that is actually in realmemory at a particular instant working set is that subset of resident set that is actually needed for execution relate this to the variablewindow size method for swapping techniques
what do you mean by shortest path problem,in graph theory the shortest path problem is the problem of finding a path between two vertices or nodes in a graph such that the sum of the weights of its constituent edges is minimized
how do you explain risch algorithm,an algorithm for the calculus operation of indefinite integration ie finding antiderivatives
define compactions,compaction is a process in which the free space is collected in a large memory chunk to make some space available for processes
how do you define binary search,a binary search or halfinterval search finds the position of a specified value the input key within a sorted array binary search is applied only on the list which is sorted and if the list to be searched is not sorted it needs to be sorted before binary search can be applied to it
how do you explain quick hull,quickhull is a method of computing the convex hull of a finite set of points in the plane
what is the logical address space,logical address specifies the address which is generated by the cpu whereas physical address specifies to the address which is seen by the memory unit
what do you mean by the main purpose of an operating system,there are two main purposes of an operating systemit is designed to make sure that a computer system performs well by managing its computational activitiesit provides an environment for the development and execution of programs
how do you explain multiplicative inverse algorithms,an approximation of the squareroot of the sum of two squares
example of divide and conquer algorithms,one such example of divide and conquer is merge sorting
what is ukkonens algorithms,a lineartime online algorithm for constructing suffix trees