Algorithmic Design And Optimization For Quantum Computation With A Qubit-Oscillator System