Skip to content

mabdllv/spbau_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Projects

GUI

The application allows you to create notes and saves them to files date.txt (you can choose the date using a calendar in the app).

Monte Carlo

The method computes a definite integral. The Monte Carlo method consists in randomly choosing N points in the area of the function's graph (with xs from x1 to x2 and ys from y1 to y2). When the points are arranged, you need to calculate the number of points (M) that are located in the area bounded by the function. Theт the limit of (x2 - x1) * (y2 - y1) * (M / N) is the integral of the function from x1 to x2 as N approaches infinity.

Relations count

This problem was proposed to me in a Discrete mathematics course. The program generates all possible relations on sets of a given size and returns a distribution matrix of counted relations depending on their properties. There is an implementation using a relations generator class and a faster one using numba. You also can see Relations.jpg file that helps to understand the calculation result.

Example:

Without numba it took about 21 sec to count relations between 4-element set to 5-element set.

Using numba this calculation took only 0.76 sec.

Web Application

This application allows you to align 2 sequences and count the edit distance.

Statistics & Genetic algorithm

genetic_algorithm.py creates a Gaussian distribution from the input_data.csv and returns best_solution.csv. You can see the difference in input_data.jpg and best_solution.jpg.

About

Uni labs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published