Elections are the best way to overcome Algeria’s political crisis and avoid a constitutional vacuum, the country’s army chief said on state television.