Consider 4 Queen Problem which is an instance of N Queen Problem. How many possible ways are there to place 4 queens with (i) Attack allowed and (ii) Without any attack in 4 Queen Problem?
Consider a graph G(V,E) where V is set of vertices and E is the set of edges represented using adjacency list. What is the running time of Prim’s algorithm using priority queue on the graph G?