A Class of Standard Bases of Polynomial Algebras and Its Applications