Skip to main content

Interactive visualization

Binder

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

Quicksort

Matplotlib animations

Using matplotlib one can visualize some plane algorithm, for example EM algorithm for Old Faithfull eruption data

em

or domino coloring based on 5-coloring algorithm for planar graphs

coloring

or convex hull construction

convex_hull

Graphviz

Using graphviz one can visualize basic graph algorithms, here's an example of Dijkstra algorithm

dijkstra

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)

Source distribution for interactive-visualization 0.1.4
File Size Uploaded
interactive-visualization-0.1.4.tar.gz 9.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for interactive-visualization 0.1.4
File Interpreter ABI Platform
interactive_visualization-0.1.4-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

3 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page