## Princeton Univerisy Lectures: Algorithms Part I – Union-Find(1) Dynamic Connectivity

Welcome back to algorithms. Today, we’re going to talk about the union find problem. A set of algorithms for solving the so-called dynamic connectivity problem. We’ll look at two classic algorithms. Quick Find and Quick Union, and some applications and improvements of those algorithms. The subtext of today’s lecture really is to go through the steps that we’ll follow over and over again to develop a useful algorithm. The first step is to model the problem. Try to understand, basically, what are the main elements of the problem that need to be solved. Then we’ll find some algorithm to solve the problem.

Tagged with:
Posted in Algorithm

## Create a jQuery plugin to make your web as a speaker

I there anyway to make your web text content spoken?

There are a lot of APIs we can use, but it is not easy to choose a suitable one. I tried with google translate speech api (e.g:http://translate.google.com/translate_tts?ie=UTF-8&q=what+are+you+doing&tl=en-us), but there is a limitation that the length of sentence can not be longer than 100 characters for one time call. Anyway we can split our large content into array of sentences and every item is one sentence which shorter than 100 characters. Then loop the array to call google’s API, but another problem raises up, google will cancel our call because the frequency is too high.

Tagged with: ,
Posted in Digital Multiple Media, Javascript

## Anticorruption Activist Sentenced to More Than 6 Years in Prison

Two years ago, Liu Ping, one of three anticorruption activists sentenced on Thursday to prison terms of up to six and a half years, said she wanted to change China “one vote at a time.”

## Glass by blender

Tagged with: ,
Posted in CG

EasyUI is a good jQuery plugin for web application user interface,  especially for showing data in grid format. Sometime, we need to add a download link under data grid table like above picture, so that user can easily download

Tagged with:
Posted in Javascript

## My first 3D short movie for my assignment in NTU

Tagged with: ,
Posted in CG

How to make the content to be read easily and comfortable is very important. In order to do this, you have to think about several essentials like line height, color, font, font size and typography. In this article, we create

Tagged with: ,
Posted in CSS3, HTML5

## A simple online canvas base on HTML5

Demo This is not a completed application, still in development. Main technologies are HTML5, Javascript and css. I used local storage technology of HTML5 for online data storage, so it only support modern browser. There are some tools can

Tagged with: , ,
Posted in HTML5

## Gallery thumb fan spin effect with CSS and jQuery

Use CSS animation and javascript we can create a fancy fan spin effect for showing gallery thumb items.

Tagged with: , ,
Posted in CSS3, Javascript

## Gallery thumb item hover effect with css

It’s easy to do a beautiful hover effect for gallery thumb list by using pure css code.

Tagged with:
Posted in CSS3