Skip to main content

Package provides a simple widget-based framework for interactive visualization of algorithms

Project description

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 цветов (не протестировано).

Обходы на графах

Разобраны обходы в глубину и ширину, а так же их базовые применения.

Кратчайшие пути на графах

Основные алгоритмы для задачи о крайших путях от одной вершины до всех остальных. Все алгоритмы представлены как модификации "сканирующего метода".

Префиксное дерево

Префиксное дерево, префикс-функцию, алгоритм Ахо-Корасик и их применения в марковских моделях для обработки текста.

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

interactive-visualization-0.1.4.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

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

interactive_visualization-0.1.4-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file interactive-visualization-0.1.4.tar.gz.

File metadata

  • Download URL: interactive-visualization-0.1.4.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for interactive-visualization-0.1.4.tar.gz
Algorithm Hash digest
SHA256 efd0dd0cca0cf0008a47a70005a7eddcfd15430dcdd0e9f6bcac9e3ee48339c7
MD5 2543036f53242723d4886d2cc419b9bf
BLAKE2b-256 6f8244a66a54fa4557adfb669f7859805b96c3ea1237b45314b7423d7a84d3a8

See more details on using hashes here.

File details

Details for the file interactive_visualization-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: interactive_visualization-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for interactive_visualization-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8718c65d1906c024c8c9bdf511186b8d390739d23c5fb790caf83bea82954a0e
MD5 8a612d6262ade848965c97f8a8fc3f42
BLAKE2b-256 213dafec891a73c579bef12715ec63bce5fea7d65bf34c9745fbd0451ebf9884

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