Dijkstra,Floyd using one dimentional, two dimentional array and linkedlist