Async functions with AngularJS

The best feature that I have encountered with AngularJS is programming async functions. The best example of using async functions is the $http service. To make a web request, the following javascript code can be used:

The $http function

Min Heap implementation for Dijkstra algorithm

Dijkstra’s algorithm is used to compute the shortest distance between two vertices in a graph. The psuedo code for the main part of Dijkstra’s algorithm is shown below:

An extremely fast implementation for Heap which can be used in