Two kinds of Novikov algebras and their realizations