Pregunta de entrevista de Oracle

How would you implement an RDBMS optimizer?