I believe that when you finish these two courses, you will find that the best way is to learn discrete series first, and then learn data structure. Of course, it is also possible for you to learn the data structure first. It doesn't have much impact.
Learn the principle of computer composition well before compiling.