Interactive visualization
This repository contains a framework for iteractive visualization of algorithms based on widgets in jupyter notebook. Here are some examples of animations generated by the framework. The code is provided in overview notebook
Text animations
Here's an example of quicksort algorithm using text state representation
Matplotlib animations
Using matplotlib one can visualize some plane algorithm, for example EM algorithm for Old Faithfull eruption data
or domino coloring based on 5-coloring algorithm for planar graphs
or convex hull construction
Graphviz
Using graphviz one can visualize basic graph algorithms, here's an example of Dijkstra algorithm
Requirements and installation
A proper installation on debian-based systems is
cat apt.txt | xargs sudo apt-get install
pip install interactive-visualization
For other linux-based OS use the appropriate package manager to install packages listed in apt.txt which currently contains graphviz and latex needed for proper visualization in notebooks. Note that there also might be problems with ipywidgets in jupyter lab, check the docs for installation instructions.
Creating an interactive animation using the framework
See manual for more reference.
Examples
Eng
Covid-19
Some basic parse and analysis of global Covid-19 data from Johns Hopkins University.
Rus
Замощене доминошками
Рассматривается задача покрытия фигур на плоскости, состоящиех из квадратных клеток одинакового размера и два её программных решения: с помощью динамического программирования по профилю и с помощью нахождения максимального паросочетания. Бонусом идет раскраска планарного графа в 5 цветов (не протестировано).
Обходы на графах
Разобраны обходы в глубину и ширину, а так же их базовые применения.
Кратчайшие пути на графах
Основные алгоритмы для задачи о крайших путях от одной вершины до всех остальных. Все алгоритмы представлены как модификации "сканирующего метода".
Префиксное дерево
Префиксное дерево, префикс-функцию, алгоритм Ахо-Корасик и их применения в марковских моделях для обработки текста.
Metadata
Release files for interactive-visualization 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| interactive-visualization-0.1.4.tar.gz | 9.6 kB | Without provenance | Details for interactive-visualization-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| interactive_visualization-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for interactive_visualization-0.1.4-py3-none-any.whl |
Total release size: 18.8 kB
Release files / interactive-visualization-0.1.4.tar.gz
| Download URL | interactive-visualization-0.1.4.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
efd0dd0cca0cf0008a47a70005a7eddcfd15430dcdd0e9f6bcac9e3ee48339c7
|
|
BLAKE2b-256 checksum How to use checksums |
6f8244a66a54fa4557adfb669f7859805b96c3ea1237b45314b7423d7a84d3a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.3
|
Release files / interactive_visualization-0.1.4-py3-none-any.whl
| Download URL | interactive_visualization-0.1.4-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8718c65d1906c024c8c9bdf511186b8d390739d23c5fb790caf83bea82954a0e
|
|
BLAKE2b-256 checksum How to use checksums |
213dafec891a73c579bef12715ec63bce5fea7d65bf34c9745fbd0451ebf9884
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.3
|
Security for interactive-visualization 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.