Very basic hashtable

This is only a very basic hashtable
I use half an hour to write it(such a easy program takes me so long)
The hash function of string is simply sum all of the charactors up and times a prime number
This program is used to calculate how many times of every input string appears
The structure of this hashtable is like this:

Quicksort

I finished merge sort, heap sort. If I leave quicksort along, he must be very upset.
So… Quicksort, here we go.
Quicksort, not only quick, but also … quick.
The first quick means it runs quickly, the second one is it writes short and quick.
Here is my code

Heapsort

Heap sort? What? You choose this?
I don’t know why I choose heapsort. Maybe I just want to practise how to write something about heap.
If you want to know how it works, go to Wiki, or Baidu, or Google.
It’s just my implement.
We can see that heapsort may have more actions compared with quicksort. But heapsort is always $O(n * log_2n)$, while quicksort may cause a $O(n^2)$. Especially I’m always in bad luck. T.T
Here is my code:

Distance Calculator GUI

Everyone want to calculate the distance between his Goddess and himself. This calculator can meet your need!
This is the first time that I use Python to generate a calculator.

##AIM##
This program is used to get a GUI software for a edit distance calculator

Sort List use merge sort

Why you are so sad? Just because you can not sort a list?
If someone want you to sort a list, what will you do? quicksort? No.
Merge sort is your choose! How much do you think a merge sort will cost? $O(n^2)$ ? $O(n^3)$ ? No!
It ONLY take you $O(n * log_2n)$! Buy now, you can get a input part freely!

Matrix invert

Author: Song Li

##AIM##
This program is used to generate, invert matrix. Just use row addups and swaps rows randomly to generate a invertable matrix.

Simple Network

Author: Song Li

AIM

This program is used to transform files from client to server, the server will run the received code and return the answer to the client. The client part and the server part are combined to a single program. Using “fork()” function to make them work separately.

Myfmt

Author: Song Li

##AIM##
This program is use to do text format things. Users can use this program to limit the width of every line into a particular length and can uniform every blanks.

Maximal Square

Given a 2D binary matrix filled with 0’s and 1’s, find the largest square containing all 1’s and return its area.

For example, given the following matrix:

1 0 1 0 0
1 0 1 1 1
1 1 1 1 1
1 0 0 1 0
Return 4

Count Complete Tree Nodes

Given a complete binary tree, count the number of nodes.