Skip to main content

Librairie simpliste de manipulation de tableaux a des fins d'enseignement de l'algorithmique

Project description

Librairie bibTableau

Cette librairie est destinée aux étudiants des UEs d'initiation à l'algorithmique de l'université de Bordeaux. Sa publication sur pypi vise à faciliter l'installation de la librairie par les étudiants en séance de travux pratiques.

Une librairie minimaliste

La librairie a un objectif pédagogique précis:

  • Faire en sorte que les étuiants manipule des tableaux comme si ceux-ci était typés et nécessitait la déclaration de leur taille.

La librarie ne contient que trois fonctions:

  • La fonction creerTableau crée un tableau de taille nombreElements
    • utilisation: creerTableau(10) ou creerTableau(10,-1)
def creerTableau(nombreElements,valeurInitiale=None ):
    return [valeurInitiale]*nombreElements
  • La fonction creerTableaualeatoire crée un tableau de nombreElements éléments tirés aléatoirement dans l'intervalle [borneInf, borneSup]
    • utilisation: creerTableauAleatoire(10) ou creerTableauAleatoire(10,-50,-10)
def creerTableauAleatoire(nombreElements,borneInf=-50, borneSup=50): 
    t = creerTableau(nombreElements)
    for i in range (nombreElements):
        t[i] = random.randint(borneInf,borneSup)
    return t
  • La fonction creerTableauMonotone crée un tableau de nombreElements éléments tirés aléatoirement dans l'intervalle [borneInf, borneSup]
    • si variation est positif (resp. négatif), le tableau est croissant (resp. décroissant)
    • utilisation: creerTableauMonotone(10) ou creerTableauMonotone(10,-1)
def creerTableauMonotone(nombreElements, variation = 1,borneInf=-1000, borneSup=1000):
     t = creerTableauAleatoire(nombreElements,borneInf,borneSup)
     var = variation < 0
     return sorted(t,reverse = var)

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

bibtableau-0.1.0.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

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

bibtableau-0.1.0-py2.py3-none-any.whl (2.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file bibtableau-0.1.0.tar.gz.

File metadata

  • Download URL: bibtableau-0.1.0.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.5 Darwin/24.1.0

File hashes

Hashes for bibtableau-0.1.0.tar.gz
Algorithm Hash digest
SHA256 98e4dbb7b1d8c08714ecfb2e1f82904df9a4bfd1c12740a34819628295c397dc
MD5 dd1e0e1b29f26adfa5608bb1c2b2c26b
BLAKE2b-256 600953b6cd0c4bad3a2cb50987c409faf57bbad97ee143184f270c8713fb5e7c

See more details on using hashes here.

File details

Details for the file bibtableau-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: bibtableau-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.5 Darwin/24.1.0

File hashes

Hashes for bibtableau-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1c32090b9a7ceedbc9a4eb28215f3445fb992cfb3e6892efcc26a57736197b93
MD5 4a279174d4e3cb0a9816178e41031747
BLAKE2b-256 84e1a8067e50fe58fd8f471766c6273e4ad5fe49b956fc35db6738cfb3f439a7

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