r/javahelp • • Jan 06 '21

Algorithm in Java Spring

I am Java self-taught, I just learned algorithms and spring framework. I want to master web programming using Java. I am still a student, I have never participated in real projects so I have many questions I want to be answered. I would be more than happy to receive an answer from someone.

-In Java Spring practical projects, algorithms such as recursion, backtracking, BFS, DFS, binary tree search, etc are used and used a lot? When Spring Data JPA has a search function, are search algorithms such as binary tree search, BFS, DFS, etc important and used?

- Between the algorithm and the framework, which one should I learn more deeply?

Hope someone will answer these of my problems. Thanks very much

21 Upvotes

11 comments sorted by

View all comments

14

u/King5lay3r Jan 06 '21

Let me get this straight. You'd only be using Algorithms you've mentioned when needed, which is very rare. You'd be applying the business logic of the application or service you are building. You have been blessed with all the required Data Structures and their APIs that using these algorithms from scratch is not necessary. When developing project your focus should be getting the business logic right and delivering a working component. All the required operations are provided through APIs so you'd focus more on actual development. Although no one is stopping you from using Searching and Sorting algorithms if its for the learning purpose.

About your second question; they both have their own place. Learn Algo and DS for problem solving and interviews, Learn framework for actual project development.