Skip to main content

Using basic algorithms

Project description

BasicAlgo

1. Objective

The objective of this project is to be familiar with python language and data structures and algorithms.

2. Scope

The scope of this project is basic data structures and algorithms used in day-to-day life.

3. Introduction to library

This library is intended to the users who want to use basic algorithms in python. The basic algorithms includes:

  1. Kadane's Algorithm
  2. Next permutation
  3. Longest consecutive sequence
  4. Fractional knapsack
  5. N-Queens
  6. Sudoku solving
  7. M colouring problem
  8. Print all permutations of a string
  9. Word break
  10. Palindrome partitioning
  11. Subset sum
  12. Kth permutation sequence
  13. Check for balanced parentheses
  14. Next greater element
  15. Largest rectangle in histogram
  16. Reverse words in string
  17. Longest Common prefix
  18. Rabin Karp
  19. Prefix function / Z-function
  20. KMP Algorithm
  21. Binary tree, traversals and views
  22. Height of binary tree
  23. LCA in binary tree
  24. Maximum sum path
  25. Binary tree from inorder and preorder
  26. Binary tree from inorder and postorder
  27. MST using Prim's Algorithm
  28. MST using Kruskal's Algorithm
  29. Max product subarray
  30. Longest increasing subsequence
  31. Longest common subsequence
  32. 0/1 Knapsack Problem
  33. Coin Change
  34. Subset sum
  35. Egg dropping
  36. Palindrome partitioning

2. Usage of library

import basic_algo
from basic_algo import Stack
from basic_algo.Stack import CheckForBalancedParentheses as cfbp


obj = cfbp.CheckForBalancedParentheses()
if obj.CheckForBalancedParentheses("((()))"):
    print("Yes")
else:
    print("No")

3. Contact for updates

Siddharth Marvania: 17bit046@nirmauni.ac.in
Jenil Mehta: 17bit048@nirmauni.ac.in

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ccalgo-0.0.1.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ccalgo-0.0.1-py3-none-any.whl (32.4 kB view details)

Uploaded Python 3

File details

Details for the file ccalgo-0.0.1.tar.gz.

File metadata

  • Download URL: ccalgo-0.0.1.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.8

File hashes

Hashes for ccalgo-0.0.1.tar.gz
Algorithm Hash digest
SHA256 cfdf38fcd4c42942b3460b79faba5e136f3da60bb204ff711eaa922599c02b5a
MD5 3b5109a776de8a3a49372af8f572d5cb
BLAKE2b-256 0133d55e8db8cf616f9702759bbaab7dfc331c5cffbb8b49ea7aaf2bec2af24b

See more details on using hashes here.

File details

Details for the file ccalgo-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: ccalgo-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 32.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.8

File hashes

Hashes for ccalgo-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3a1d2248bab44242bfd2558678735228d9088af157af48d934a8f5f5498d7264
MD5 9182e0b0d5f30235d472328719869446
BLAKE2b-256 375e6839da3dd7390865f767c3e2355d147f970fb740f8af0f0e3e9032a8c12c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page