Skip to content

A Repository for algorithms in C, C++, Python and Java

License

Notifications You must be signed in to change notification settings

intagliated/Algorithms

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

A repository for all Algorithms





GitHub repo size GitHub repo file count

GitHub issues GitHub pull requests GitHub GitHub forks GitHub Repo stars


Tech Stacks





Programs we have been a part of

No. Program Name Duration Deployment
1. Hacktoberfest (2022) 1st Oct 2022 - 31st Oct 2022 Algorithm
2. Social Winter of Code (2023) 1st Jan 2023 - 15th Mar 2023 Algorithm
3. Social Summer of Code (2023) 1st June 2023 - 31st July 2023 Algorithm


Available Resources

  • The resources are categorized based on programming language. One folder for one programming language

    • Each folder has different subfolders. The subfolder represents the category algorithm belongs to
      • Each subfolder has different files. Filename represents the name of the algorithm

No. Algorithm Name Available languages Category
1. Diagonal Print Algorithm in 2D Array C, C++, Java, Python Arrays
2. Spiral Print Matrix C, C++, Java, Python Arrays
3. Caesar Cipher C, C++, Java, Python Cryptography
4. Diffie - Hellman Algorithm Python Cryptography
5. Hill Cipher C++, Java, Python Cryptography
6. Homophonic Substitution C, C++, Java, Python Cryptography
7. Railfence Cipher C, C++, Java, Python Cryptography
8. RSA C, C++, Java, Python Cryptography
9. SHA - 256 C, C++, Java, Python Cryptography
10. Vernam Cipher C, C++, Java, Python Cryptography
11. Vignere Cipher C++, Java, Python Cryptography
12. Huffman Coding C, C++, Java,Python Data Compression
13. Banker's Algorithm C, C++, Java,Python Deadlock Avoidance
14. Perceptron Learning - Boolean Functions Python Deep Learning
15. Karatsuba Algorithm C++, Java, Python Divide and Conquer
16. Strassen's Matrix Multiplication C, C++, Java, Python Divide and Conquer
17. 0/1 Knapsack C, C++, Java, Python Dynamic Programming
18. Coin change problem C, C++, Java, Python Dynamic Programming
19. Edit Distance C++ Dynamic Programming
20. Longest Common Subsequence C, C++, Java Dynamic Programming
21. Matrix Chain Multiplication C++ Dynamic Programming
22. Minimum Jump Algorithm C, C++, Java, Python Dynamic Programming
23. Minimum Sum Partition Problem C, C++, Java, Python Dynamic Programming
24. Travelling Salesman Problem C, C++ Dynamic Programming
25. Bellman Ford C++ Graphs
26. Dijkstra C, C++, Java, Python Graphs
27. Dinic's Algorithm C++, Java, Python Graphs
28. Floyd Warshall C, C++, Java, Python Graphs
29. Ford-Fulkerson Algorithm C++, Python Graphs
30. Hamiltonian Path Java Graphs
31. Kosaraju's Algorithm C++ Graphs
32. Prim's Algorithm C++, Java, Python Graphs
33. Tarjan Algorithm C, C++, Java, Python Graphs
34. Activity Selection C, C++, Java, Python Greedy Algorithm
35. Fractional Knapsack C, C++, Python Greedy Algorithm
36. Job Sequencing C, C++, Java, Python Greedy Algorithm
37. Merge Interval Algorithm C, C++, Java, Python Greedy Algorithm
38. Optimal Merge Pattern C, C++, Java, Python Greedy Algorithm
39. Addition of two Linked Lists C++ Linked List
40. Circular Linked List C, C++, Python Linked List
41. Detect loop in a Linked List C++ Linked List
42. Doubly Linked List C, C++, Java, Python Linked List
43. Intersection of two Linked Lists C++ Linked List
44. Length of Linked List C, C++, Java, Python Linked List
45. LRU Cache Design C, C++, Java, Python Linked List
46. Merge Two Sorted Linked List C, C++, Java, Python Linked List
47. Palindrome Linked List C, C++, Java, Python Linked List
48. Reverse Linked List C, C++, Java, Python Linked List
49. Singly Linked List C, C++, Java, Python Linked List
50. Sorting Linked List C, C++, Java, Python Linked List
51. Decision Tree Python Machine Learning
52. Feed-Forward Neural Network C++ Machine Learning
53. K-Means Clusters C++, Python Machine Learning
54. K-Nearest Neighbours C, C++ Machine Learning
55. Linear Regression C, C++, Python Machine Learning
56. Logistic Regression C++, Python Machine Learning
57. Naive Bayes C++, Python Machine Learning
58. Armstrong Numbers C, C++, Java, Python Maths
59. Binary Exponentiation C, C++, Python Maths
60. Bennett's Formula C, C++, Java, Python Maths
61. Bisection Algorithm C, C++, Java, Python Maths
62. Closures of Relations C, C++, Java, Python Maths
63. Decimal <-> Binary Converter C, Python Maths
64. Extended Euclidean Algorithm C, C++, Java, Python Maths
65. Euler's Totient Function C, C++, Java, Python Maths
66. Factorial of Number C, C++, Java, Python Maths
67. Factors C, C++, Java, Python Maths
68. GCD & LCM C, C++, Java, Python Maths
69. Modular Exponentiation C, C++, Java, Python Maths
70. Pascal's Triangle C, C++, Java, Python Maths
71. Perfect Number C, C++, Java, Python Maths
72. Prefix-Postfix-Infix Interconversion C++, Python Maths
73. Prime Number C, C++, Java, Python Maths
74. Reverse Integer C++, Python Maths
75. Roman to Decimal converter C, C++, Java, Python Maths
76. Sieve Eratosthenes Algorithm C, C++, Java,Python Maths
77. Zeller's Algorithm C, C++, Java, Python Maths
78. Genetic Algorithm C++, Python Optimization
79. Boyer Moore Algorithm C, C++, Java, Python Pattern Matching
80. KMP Algorithm C, C++, Java, Python Pattern Matching
81. Rabin Karp C++, Python Pattern Matching
82. Z - Algorithm C, C++, Java, Python Pattern Matching
83. String Permutation C, C++, Java, Python Recursion
84. Tower of Hanoi C, C++ Recursion
85. BFS and DFS C++, Java Searching
86. Binary Search on 2D Matrix C,C++, Java, Python Searching
87. Binary Search C, C++, Java, Python Searching
88. Fibonacci Search C, C++, Java, Python Searching
89. Jump Search C, C++, Java, Python Searching
90. Linear Search C, C++, Java, Python Searching
91. Order Agnostic Binary Search C++, Python Searching
92. Ternary Search C, C++, Java, Python Searching
93. 3 Sum Problem C, C++, Java, Python Sorting
94. Bubble Sort C, C++, Java, Python Sorting
95. Bucket Sort C++, Java Sorting
96. Counting Sort C, C++, Java,Python Sorting
97. Cyclic Sort C++, Java, Python Sorting
98. Cocktail Sort C++ Sorting
99. Dutch National Flag C++, Java, Python Sorting
100. Gnome Sort C, C++, Java, Python Sorting
101. Heap Sort C, C++, Java, Python Sorting
102. Insertion Sort C, C++, Java, Python Sorting
103. Merge Sort C, C++, Java, Python Sorting
104. Quick Sort C, C++, Java, Python Sorting
105. Radix Sort C, C++ Java, Python Sorting
106. Selection Sort C, C++, Java, Python Sorting
107. Shell Sort C, C++, Java, Python Sorting
108. Topological Sort C++ Sorting
109. Wave Sort C++, Java, Python Sorting
110. Max Area in Histogram C, C++, Java, Python Stacks
111. Next Greater Element C, C++, Java, Python Stacks
112. Rain Water Problem C, C++, Java, Python Stacks
113. Stack Using Priority Queue C, C++, Java, Python Stacks
114. Beautiful String Algorithm C, C++, Java, Python Strings
115. Camel Case Algorithm C, C++, Java, Python Strings
116. Boyer-Moore Majority Voting C, C++, Python Sub-Arrays
117. Kadane's Algorithm C++, Java, Python Sub-Arrays
118. Shortest Unsorted Continuous Sub-Arrays C, C++, Java, Python Sub-Arrays
119. AVL Tree C, C++, Java, Python Trees
120. Binary Search Tree C, C++ Trees
121. Binary Tree to BST C, C++, Java, Python Trees
122. Morris Traversal C, C++, Python Trees
123. Red-Black Tree C++, Java, Python Trees
124. Splay Trees C, C++, Java Trees
125. Symmetric Tree Algorithm C, C++, Java, Python Trees
126. Tree Traversal C, C++, Java, Python Trees
127. Trie C++, Java Trees

Contributors πŸ«‚


Steps for Contributing πŸš€

Refer to this YouTube Video for reference!


  • Fork and clone the Repo by typing the following commands in the terminal
$ git clone https://github.com/Kumar-laxmi/Algorithms.git

$ cd Algorithms
  • Now to add your resource to website, add an object with keys same as listed in existing objects in the file.
  • Save and commit your code.
  • Push to your fork of the repository , navigate to original repository and make a pull request.

Screenshot 2022-10-23 at 8 03 11 AM
Screenshot 2022-10-23 at 8 03 31 AM
  • Clone the Repository after forking
$ git clone https://github.com/<your-github-username>/Algorithms.git

$ cd algorithms
  • Make changes to the code(for ex- add an update route)

  • Create a Branch using:

$ git checkout -b <branch-name>
  • Stage your changes using:
$ git add .
  • Commit your changes using:
$ git commit -m "add any comment"
  • Push the changes to the forked repository using:
$ git push origin <branch-name>
  • Navigate to the original repository and make a pull request
  • In case of merge conflict fetch and merge from the remote repository

Please don't forget to update the Available Resources section

Happy?? Star ⭐ this Repo. 🀩

About

A Repository for algorithms in C, C++, Python and Java

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 28.6%
  • Java 27.1%
  • Python 25.0%
  • C 19.3%