Logics and Algorithms are important for computer science

Categories: Tech | Pubby Cash Received:  10 | Click to Award

It is common for a beginner programmer trying to master as many syntax as possible for each specific language he or she is learning. This is fine. However, one cannot neglect the training of logics and algorithms, which are more important than the syntax itself. If you cannot memorize a specific syntax, as long as you have internet, you can easily find it on websites such as Stackoverflow, W3schools, and so on. However, if you cannot figure out the logics and algorithms, no one can help you. For example, gopubby is featured with a "like" mechanism that gives pubbies options of liking an article or unliking an article. It sounds simple, but you need to figure out the following logics and realize them with correct algorithms: When one article is liked by one pubby, the following incidents will happen: (1) the number of likes for the author of the article should increase by 1; (2) the user ids who like the article will be linked to the article; (3) the author of the article cannot like his/her own article; (4) when the article's full information is displayed, the user ids who likes the article should be pulled out from the database and converted back to usernames; (5) if the total likes of an author reach a specific threshold value, the membership status of the author should increase by one level. When one article is unliked by one pubby, the incidents that will happen are as follows: (1) the number of likes for the author of the article should decrease by 1; (2) the user id who unlikes the article that originally links to the article should be removed; (3) if the total likes of an author fall down below a specific threshold value, the membership status of the author should decrease by one level. I highly recommend this book that does a very well job surveying the most important computer algorithms currently in use and providing a full treatment of data structures and algorithms for sorting, searching, graph processing, and string processing—including fifty algorithms every programmer should know.


Published from: Pennsylvania US
Liked by: fnfOzvSR 

Daily Deals


MECHANICSBURG WEATHER