Computer Science General: (Algorithm
Computer Science General: (Algorithm
( a ) Write an algorithm to insert an element at the beginning and end ofsingly linked list.
(b) What are the characteristics of an algorithm? (4+3y-3
3. (a) Define stack.
(b) Write algorithms for the following stack operations, for array implementation of stack :
() Test whether the stack is empty.
(i) Test whether the stack is full.
(b) Construct a