Generic Dijkstra's Algorithm

Through various projects, I've had to do some shortest-path finding in a connected graph. An efficient and straight-forward way to do this is using Dijkstra's Algorithm. Notice that it'll only work for graphs with non negative path weights, like 2D maps for instance. While I've used the algorithm on several occasions, it's only now that I've rewritten it in generic form.

Read the complete 4468 bytes...

Digg it | Kick it | Dzone it | Reddit


Book: Programmers at Work

I just finished reading the book Programmers at Work by Susan Lammers.

Read the complete 1576 bytes...

Digg it | Kick it | Dzone it | Reddit


Mapping datareader to objects using Reflection.Emit

I've previously written of how to automatically map a DataTable into a strongly typed collection of objects. There's a problem though, it's not fast... I wanted to improve on it, and this is what I ended up with.

Read the complete 9864 bytes...

Digg it | Kick it | Dzone it | Reddit