Both programs are 4-year programs with each year consisting of two semesters, they are both accredited nationally and internationally, as they are under the school of engineering.
At the end of the day, the choice of major depends on the student’s preferences and interests. For instance, if the student is interested in programming and designing applications, they would go for BS in Computer Science, but if they are interested in machine learning and robotics, then BS in Artificial Intelligence is the right choice.