Dsa Lab It Labmanual
Dsa Lab It Labmanual
8. Given a two dimensional array of letters and a list of words. Write a program to
find the word from the puzzle. These may be horizontal, vertical or diagonal in
direction.
1 2 3 4
1 t h i s
2 w a t s
3 o a h g
4 f g d t
1 p1 p5 p10
2 p2 P8
3 P7
4 P3 P9
5 P4 P6
19. Assume that main memory can accommodate only 3 pages of size 1 K each.
Consider the allocation of main memory with corresponding page faults
as follows: 1, 2, 3, 4, 5, 2, 1, 2, 4. Determine the total no. of page faults using LRU
page replacement algorithm. Show memory allocation stage after each page being
brought into the main memory using stack.
free
page 2(t1)
page 1(t0)