a* algorithm in artificial intelligence makes use of a priority queue just like Uniform Cost Search with the element stored being the path from the start state to a particular node, but the priority of an element is not the same.
read more from below link
*********************************************
WATCH MY ARTIFICIAL INTELLIGENCE ALGORITHM PLAYLIST FROM BELOW LINK
*********************************************
UC3m2HQvQpVT6Xcs6CNJyYRQ
source