There are many set algorithms to solve a Rubik's Cube. The majority of these algorithms are written in a form of notation, making it imperative to understand the code before understanding the algorithm.
Rubik's cube notation follows a single-letter format, with one letter representing a single move. The letter R for example, denotes the rotation of the right face 90 degrees clockwise. A letter followed by an apostrophe (R') denotes a rotation counter clockwise. One example of a complete step in a Rubik's cube algorithm is-- R' D R F D2 F'.
Most sites recommend that the solver of the Rubik's cube attempt the first step without algorithmic assistance. This step is referred to as the "white cross" and involves aligning the four white edge pieces to match their corresponding center piece.