mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-27 23:11:09 +00:00
140b79b4b2
* Adding new file to the machine_learning directory * Adding initial documentation * importing modules * Adding Normal_gen function * Adding Y_gen function * Adding mean_calc function * Adding prob_calc function * Adding var_calc function * Adding predict function * Adding accuracy function * Adding main function * Renaming LDA file * Adding requested changes * Renaming some of functions * Refactoring str.format() statements to f-string * Removing unnecessary list objects inside two functions * changing code style in some lines * Fixing y_generator function * Refactoring 'predict_y_values' function by using list comprehensions * Changing code style in import statements * Refactoring CLI code block * fixup! Format Python code with psf/black push * No lines longer than 88 characters
46 KiB
46 KiB
Arithmetic Analysis
- Bisection
- Gaussian Elimination
- In Static Equilibrium
- Intersection
- Lu Decomposition
- Newton Forward Interpolation
- Newton Method
- Newton Raphson Method
- Secant Method
Backtracking
Blockchain
Boolean Algebra
Ciphers
- Affine Cipher
- Atbash
- Base16
- Base32
- Base64 Cipher
- Base85
- Brute Force Caesar Cipher
- Caesar Cipher
- Cryptomath Module
- Deterministic Miller Rabin
- Diffie
- Elgamal Key Generator
- Hill Cipher
- Mixed Keyword Cypher
- Morse Code Implementation
- Onepad Cipher
- Playfair Cipher
- Porta Cipher
- Rabin Miller
- Rot13
- Rsa Cipher
- Rsa Factorization
- Rsa Key Generator
- Shuffled Shift Cipher
- Simple Keyword Cypher
- Simple Substitution Cipher
- Trafid Cipher
- Transposition Cipher
- Transposition Cipher Encrypt Decrypt File
- Vigenere Cipher
- Xor Cipher
Compression
Conversions
Data Structures
- Binary Tree
- Disjoint Set
- Hashing
- Heap
- Linked List
- Queue
- Stacks
- Trie
Digital Image Processing
- Change Contrast
- Edge Detection
- Filters
- Rotation
- Test Digital Image Processing
Divide And Conquer
Dynamic Programming
- Abbreviation
- Bitmask
- Climbing Stairs
- Coin Change
- Edit Distance
- Factorial
- Fast Fibonacci
- Fibonacci
- Floyd Warshall
- Fractional Knapsack
- Fractional Knapsack 2
- Integer Partition
- K Means Clustering Tensorflow
- Knapsack
- Longest Common Subsequence
- Longest Increasing Subsequence
- Longest Increasing Subsequence O(Nlogn)
- Longest Sub Array
- Matrix Chain Order
- Max Sub Array
- Max Sum Contigous Subsequence
- Minimum Partition
- Rod Cutting
- Subset Generation
- Sum Of Subset
File Transfer
Fuzzy Logic
Graphs
- A Star
- Articulation Points
- Basic Graphs
- Bellman Ford
- Bfs
- Bfs Shortest Path
- Breadth First Search
- Check Bipartite Graph Bfs
- Check Bipartite Graph Dfs
- Depth First Search
- Dfs
- Dijkstra
- Dijkstra 2
- Dijkstra Algorithm
- Dinic
- Directed And Undirected (Weighted) Graph
- Edmonds Karp Multiple Source And Sink
- Eulerian Path And Circuit For Undirected Graph
- Even Tree
- Finding Bridges
- G Topological Sort
- Graph List
- Graph Matrix
- Graphs Floyd Warshall
- Kahns Algorithm Long
- Kahns Algorithm Topo
- Minimum Spanning Tree Kruskal
- Minimum Spanning Tree Prims
- Multi Hueristic Astar
- Page Rank
- Prim
- Scc Kosaraju
- Tarjans Scc
Hashes
Linear Algebra
Machine Learning
- Decision Tree
- Gradient Descent
- K Means Clust
- K Nearest Neighbours
- Knn Sklearn
- Linear Discriminant Analysis
- Linear Regression
- Logistic Regression
- Polymonial Regression
- Scoring Functions
- Sequential Minimum Optimization
- Support Vector Machines
Maths
- 3N+1
- Abs
- Abs Max
- Abs Min
- Average Mean
- Average Median
- Average Mode
- Basic Maths
- Binary Exponentiation
- Binomial Coefficient
- Ceil
- Collatz Sequence
- Explicit Euler
- Extended Euclidean Algorithm
- Factorial Python
- Factorial Recursive
- Factors
- Fermat Little Theorem
- Fibonacci
- Fibonacci Sequence Recursion
- Find Max
- Find Max Recursion
- Find Min
- Find Min Recursion
- Floor
- Gaussian
- Greatest Common Divisor
- Hardy Ramanujanalgo
- Is Square Free
- Jaccard Similarity
- Karatsuba
- Kth Lexicographic Permutation
- Largest Of Very Large Numbers
- Least Common Multiple
- Lucas Lehmer Primality Test
- Lucas Series
- Matrix Exponentiation
- Mobius Function
- Modular Exponential
- Newton Raphson
- Perfect Square
- Polynomial Evaluation
- Prime Check
- Prime Factors
- Prime Numbers
- Prime Sieve Eratosthenes
- Qr Decomposition
- Quadratic Equations Complex Numbers
- Radix2 Fft
- Runge Kutta
- Segmented Sieve
- Sieve Of Eratosthenes
- Simpson Rule
- Softmax
- Sum Of Arithmetic Series
- Test Prime Check
- Trapezoidal Rule
- Volume
- Zellers Congruence
Matrix
- Matrix Class
- Matrix Operation
- Nth Fibonacci Using Matrix Exponentiation
- Rotate Matrix
- Searching In Sorted Matrix
- Sherman Morrison
- Spiral Print
- Tests
Networking Flow
Neural Network
Other
- Activity Selection
- Anagrams
- Autocomplete Using Trie
- Binary Exponentiation
- Binary Exponentiation 2
- Detecting English Programmatically
- Euclidean Gcd
- Fischer Yates Shuffle
- Frequency Finder
- Game Of Life
- Greedy
- Largest Subarray Sum
- Least Recently Used
- Linear Congruential Generator
- Magicdiamondpattern
- Nested Brackets
- Palindrome
- Password Generator
- Primelib
- Sdes
- Sierpinski Triangle
- Tower Of Hanoi
- Two Sum
- Word Patterns
Project Euler
- Problem 01
- Problem 02
- Problem 03
- Problem 04
- Problem 05
- Problem 06
- Problem 07
- Problem 08
- Problem 09
- Problem 10
- Problem 11
- Problem 12
- Problem 13
- Problem 14
- Problem 15
- Problem 16
- Problem 17
- Problem 18
- Problem 19
- Problem 20
- Problem 21
- Problem 22
- Problem 23
- Problem 234
- Problem 24
- Problem 25
- Problem 27
- Problem 28
- Problem 29
- Problem 31
- Problem 32
- Problem 33
- Problem 36
- Problem 40
- Problem 42
- Problem 48
- Problem 52
- Problem 53
- Problem 551
- Problem 56
- Problem 67
- Problem 76
- Problem 99
Searches
- Binary Search
- Fibonacci Search
- Interpolation Search
- Jump Search
- Linear Search
- Quick Select
- Sentinel Linear Search
- Simple-Binary-Search
- Tabu Search
- Ternary Search
Sorts
- Bitonic Sort
- Bogo Sort
- Bubble Sort
- Bucket Sort
- Cocktail Shaker Sort
- Comb Sort
- Counting Sort
- Cycle Sort
- Double Sort
- External Sort
- Gnome Sort
- Heap Sort
- I Sort
- Insertion Sort
- Merge Sort
- Merge Sort Fastest
- Odd Even Transposition Parallel
- Odd Even Transposition Single Threaded
- Pancake Sort
- Pigeon Sort
- Quick Sort
- Quick Sort 3 Partition
- Radix Sort
- Random Normal Distribution Quicksort
- Random Pivot Quick Sort
- Recursive-Quick-Sort
- Selection Sort
- Shell Sort
- Stooge Sort
- Tim Sort
- Topological Sort
- Tree Sort
- Wiggle Sort
Strings
- Aho-Corasick
- Boyer Moore Search
- Check Panagram
- Knuth Morris Pratt
- Levenshtein Distance
- Manacher
- Min Cost String Conversion
- Naive String Search
- Rabin Karp
- Remove Duplicate
- Reverse Words
- Word Occurence