Given a conservative dynamical system of classical physics, how does one find a variational principle for it? Is there a canonical recipe for such a principle? The case of particle mechanics was settled by Lagrange in 1788; this text treats continuous systems. Recipes devised are algebraic in nature, and this book develops all the mathematical tools found necessary after the minute examination of the adiabatic fluid dynamics in the introduction. These tools include: Lagrangian and Hamiltonian formalisms, Legendre transforms, dual spaces of Lie algebras and associated 2-cocycles; and linearized and Z2-graded versions of all of these. The following typical physical systems, together with their Hamiltonian structures, are discussed: Classical Magnetohydro-dynamics with its Hall deformation; Multifluid Plasma; Superfluid He-4 (both irrotational and rotating) and 3He-A; Quantum fluids; Yang-Mills MHD; Spinning fluids; Spin Glass; Extended YM Plasma; A Lattice Gas. Detailed motivations, easy-to-follow arguments, open problems, and over 300 exercises help the reader.