Skip to content

Algorithms

8 articles

Breadth-First Algorithm

A JavaScript implementation of breadth-first search (BFS) for graph traversal using an adjacency list and queue data structure.

algorithmsbreadth-first searchgraph traversaldata structuresjavascript

Depth First Search Algorithm (DFS)

Learn how Depth First Search (DFS) traverses graphs by exploring each branch fully before backtracking, with JavaScript implementation and O(V+E) complexity analysis.

AlgorithmsGraph TraversalData StructuresJavaScriptRecursionSoftware Development

Dijkstra's Algorithm

A JavaScript implementation of Dijkstra's algorithm for finding the shortest path between two nodes in a weighted graph.

algorithmsgraph algorithmspathfindingcomputer scienceJavaScript

Fetching Metadata from Youtube API

How to fetch video metadata from YouTube API using JavaScript and the Google API client library with OAuth2 authentication.

npmyoutubeJavaScriptAPIauthenticationmetadata

Fibonacci with LRUCache

Implement the Fibonacci sequence efficiently using LRUCache to memoize results and eliminate redundant recursive computations.

AlgorithmsMemoizationJavaScriptCachingDynamic Programming

Least Recently Used Algorithm (LRU)

Explore the Least Recently Used (LRU) cache algorithm and how to implement it using LinkedList to efficiently manage limited cache memory.

AlgorithmsData StructuresCachingLinkedListJavaScript

N-Queens Problem

Learn how to solve the classic N-Queens problem using backtracking in JavaScript, with code examples and detailed algorithm explanations.

AlgorithmsBacktrackingCombinatorial OptimizationJavaScript

RSA Algorithm

A JavaScript implementation of the RSA algorithm with key generation, encryption, and decryption functions using modular arithmetic.

cryptographyRSA encryptionJavaScriptpublic-key cryptographyalgorithms