UK: +44 748 007-0908, USA: +1 917 810-5386 [email protected]

Ground state energy for an Ising spin model

Write a program that computes a ground state (as a vector of spins) and the ground state energy for an Ising spin model on a tree.

This problem on general graphs is NP-complete, but on trees it is solvable in polynomial time using dynamic programming. The program can be written in Python.

Ready to Score Higher Grades?