SpaceTimeComplex


NameSpaceTimeComplex JSON
Version 0.0.4 PyPI version JSON
download
home_pagehttps://github.com/hodge-py/SpaceTimeComplex
SummaryBig O calculations for Space And Time
upload_time2024-01-17 03:39:06
maintainer
docs_urlNone
authorKarson Hodge
requires_python
licenseCopyright
keywords bigo algorithm calculations
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # SpaceTimeComplex

This package was created to evaluate functions for time and space complexity. At the moment only time complexity is complete. The function runs an algorithm over and over with new
and increasing input sizes to judge the time complexity.

## Example

```python

import SpaceTimeComplex

def looper(today,stringer):
    for x in range(today):
        print(x)
    
    for y in stringer:
        print(y)

def testone(n):
    for x in range(len(n)):
        for y in range(len(n)):
            for z in range(len(n)):
              two = y
              one = x
              three = z


real = SpaceTimeComplex.RealTime() # Create the class

testSet = real.generateTestSet() #generate a test set

testSet1 = [[4,"stnr=gwege"], [12,"sagsdgg"], [3,"esfsfsseafesfsefsef"], [45,"stnrefgseege"], [17,"sagwetjtwfwe"], [34,"esfsfssem"],[41,"stn"], [53,"sakhhksdgg"], [24,"esjfjkkfsefsef"], [70,"stnwete"], [7,"sagwefwewsdfsdffwe"], ] 
# format of array. 2d array with each test set inside. You can make your own or just generate one with generateTestSet(). Each inner array is the postional arguements for the inserted argument.

real.complexGuess(looper,testSet1) #guess the complexity of a function. Returns the guess and a plot

```

![Figure_1](https://github.com/hodge-py/SpaceTimeComplex/assets/105604814/bfe0246f-ac30-418b-b171-48bb1e3093ce)

![Screenshot 2024-01-16 010936](https://github.com/hodge-py/SpaceTimeComplex/assets/105604814/0521a2d7-9254-47f2-8b6f-d408038e33b1)

## Jupyter Lab

The package can also be used in jupyter notebooks.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hodge-py/SpaceTimeComplex",
    "name": "SpaceTimeComplex",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "BigO,Algorithm,Calculations",
    "author": "Karson Hodge",
    "author_email": "khodge1@hotmail.com",
    "download_url": "https://files.pythonhosted.org/packages/0d/19/831e0a2525ca32bc085cdf29492335cda824590fe7c85eb9fbd2757ef2c6/SpaceTimeComplex-0.0.4.tar.gz",
    "platform": null,
    "description": "# SpaceTimeComplex\r\n\r\nThis package was created to evaluate functions for time and space complexity. At the moment only time complexity is complete. The function runs an algorithm over and over with new\r\nand increasing input sizes to judge the time complexity.\r\n\r\n## Example\r\n\r\n```python\r\n\r\nimport SpaceTimeComplex\r\n\r\ndef looper(today,stringer):\r\n    for x in range(today):\r\n        print(x)\r\n    \r\n    for y in stringer:\r\n        print(y)\r\n\r\ndef testone(n):\r\n    for x in range(len(n)):\r\n        for y in range(len(n)):\r\n            for z in range(len(n)):\r\n              two = y\r\n              one = x\r\n              three = z\r\n\r\n\r\nreal = SpaceTimeComplex.RealTime() # Create the class\r\n\r\ntestSet = real.generateTestSet() #generate a test set\r\n\r\ntestSet1 = [[4,\"stnr=gwege\"], [12,\"sagsdgg\"], [3,\"esfsfsseafesfsefsef\"], [45,\"stnrefgseege\"], [17,\"sagwetjtwfwe\"], [34,\"esfsfssem\"],[41,\"stn\"], [53,\"sakhhksdgg\"], [24,\"esjfjkkfsefsef\"], [70,\"stnwete\"], [7,\"sagwefwewsdfsdffwe\"], ] \r\n# format of array. 2d array with each test set inside. You can make your own or just generate one with generateTestSet(). Each inner array is the postional arguements for the inserted argument.\r\n\r\nreal.complexGuess(looper,testSet1) #guess the complexity of a function. Returns the guess and a plot\r\n\r\n```\r\n\r\n![Figure_1](https://github.com/hodge-py/SpaceTimeComplex/assets/105604814/bfe0246f-ac30-418b-b171-48bb1e3093ce)\r\n\r\n![Screenshot 2024-01-16 010936](https://github.com/hodge-py/SpaceTimeComplex/assets/105604814/0521a2d7-9254-47f2-8b6f-d408038e33b1)\r\n\r\n## Jupyter Lab\r\n\r\nThe package can also be used in jupyter notebooks.\r\n",
    "bugtrack_url": null,
    "license": "Copyright",
    "summary": "Big O calculations for Space And Time",
    "version": "0.0.4",
    "project_urls": {
        "Download": "https://github.com/hodge-py/SpaceTimeComplex/archive/refs/tags/0.0.1.tar.gz",
        "Homepage": "https://github.com/hodge-py/SpaceTimeComplex"
    },
    "split_keywords": [
        "bigo",
        "algorithm",
        "calculations"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0d19831e0a2525ca32bc085cdf29492335cda824590fe7c85eb9fbd2757ef2c6",
                "md5": "3aebb86752c837a4bef79cc1b38102a0",
                "sha256": "80ce390d6658288bd91500b79cadb2bb7b8f74e0db1cc88a6ad7ad6fab566003"
            },
            "downloads": -1,
            "filename": "SpaceTimeComplex-0.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "3aebb86752c837a4bef79cc1b38102a0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5064,
            "upload_time": "2024-01-17T03:39:06",
            "upload_time_iso_8601": "2024-01-17T03:39:06.006199Z",
            "url": "https://files.pythonhosted.org/packages/0d/19/831e0a2525ca32bc085cdf29492335cda824590fe7c85eb9fbd2757ef2c6/SpaceTimeComplex-0.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-17 03:39:06",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hodge-py",
    "github_project": "SpaceTimeComplex",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "spacetimecomplex"
}
        
Elapsed time: 0.22284s