< Previous (Operative Systems – Part 5) | (Operative Systems – Part 7) Next > NOTIFICATION: These notes are published for educational purposes. Using these notes is under your own responsibility and risk. These notes are given ‘as is’. I do not take responsibilities for how you use them. PDF Content: Least recently used (LRU) […]
Posts in the Prolog category:
Prolog using examples – Part 4
In this part of this practical tutorial, we are going to do some coding involving facts, rules, recursion, and lists. Example 1: Obtain the head of the list, obtain the tail of the list. /* Get the head of the list */ get_head(Head, [Head|_]). /* Get the tail of the list */ get_tail(Tail, [_|Tail]). ?- […]
Prolog using Examples – Part 2
Lets begin with cases related with recursion: In an imperative style, you would use a loop to produce a result, while in an functional style, it is common to use recursion to produce the same result. The most common example related with recursion is the factorial recursion, in which for example the factorial of 6 […]
