Archive

Archive for the ‘Project’ Category

Merge sort algorithm project

August 28th, 2009 aspgod No comments

The main idea of merge sort is separate big problem to many small problem. Then separate small problem to smallest one so the program will be solve many smallest one and group it to a bigger one. Solved and group again and again. Finally the answer will be appear.
Merge sort is an O(n log n) with both best and worst case.

Merge sort algorithm
Read more…

Thai Map (Curve)

April 27th, 2009 aspgod No comments

this project show the thai map using the Bezier Curve.

Thai Map Curve Program Read more…

Thai Map (Line)

April 26th, 2009 aspgod No comments

this project show the thai map using the simple line.

Thai Map Line Program Read more…

Physical Model

April 26th, 2009 aspgod No comments

This project using OpenGL to generate the physical model.
4 object of circle moves using the similar physical rule cause the physical rule use much time to compute.

Physical Model OpenGL Read more…

Kruskal’s Algorithm

April 25th, 2009 aspgod 1 comment

This project show how to resolve the Kruskal’s Algorithm with the shortest path program

Kruskal's Algorithm Program Read more…

Knapsack Problem

April 25th, 2009 aspgod No comments

This project is a Knapsack Problem represent by the classic program. How much the max value that the bag can contain with the max weight.

Knapsack Problem Read more…

Find Way Out

April 25th, 2009 aspgod No comments

This project show how to find the way out of the map. Like a rat running on the hold to find the way out

Find Way Out Program Read more…

Categories: AI Tags: , ,

8 Puzzle

April 25th, 2009 aspgod 1 comment

The A* Algorithm represent by 8 Puzzle.

Modify the simple A* from
Different Distance = RouteCount + distToGoal
to
Different Distance = RouteCount + distToGoal – distToInitial

RouteCount = Cost to current state
distToGoal = Estimated cost between possible state with
coordinates (x1, y1) and goal state at (x2, y2)
|x1 – x2| + |y1 – y2|

distToInitial = Estimated cost between possible state with
coordinates (x1, y1) and initial state at (x2, y2)
|x1 – x2| + |y1 – y2|

8 Puzzle Program Read more…

Double Linked List

April 25th, 2009 aspgod No comments

This project show how to keep the object with double linked list

Double Linked List Example Read more…

Dijkstra’s Algorithm

April 25th, 2009 aspgod No comments

This project show the shortest path to the target.

Dijkstra's Map Read more…