Ques 1. Convert the following infix expression to postfix expression
(a+b*c^d)*(e+f/g)
Ans.
Ques 2. Give any two representation of graph?What do you mean by In Degree or out degree of graph?
Ans. Graph can be represented in these two ways
1. Adjacency List
2. Adjacency Matrix
In degree - In degree of a vertex is the number of edges coming to the vertex.
Out degree - Out degree of a vertex is the number of edges which are coming out of vertex.