I bought this book in high school and it has been super useful ever since. Has lots of pseudocode examples for things such as pathfinding, flocking, and decision making. Not necessarily written for UE, but I find it useful for every application I've used and a great reference in general.