Korean algorithm