Source: https://www.cs.hku.hk/data/techreps/document/TR-2005-06.pdf