Questions and answers to some problems in principles of operating systems textbook

Operating System Concept,” 8th edition, Silberschatz, Galvin, Gagne: Wiley, 2008.  1. Textbook page 352, problem 8.11 (memory holes)   Available partitions (holes): 100, 500, 200, 300, 600 (underlined numbers represent the partition being used to fit the request) First-fit algorithm   212                  100, 288, 200, 300, 600 417                  100, 288, 200, 300, 183 112                  100, […]

Read More

Using Prolog to tell Summary of Cinderella's Story and Alternative self created versions, Using Bayesian Network and Forward Chaining

This is a project l did in Artificial Intelligence and l just want to share it with everyone. Its not the greatest but it might teach someone something new. So here goes the original Cinderella story             Cinderella’s father remarried after her mother died. Her step mother hated her and her step sisters hated her. […]

Read More

Prolog program to implement an predicate hsort(In,Out) where In is a list of structures, and Out is the sorted structures

Implement this predicate in Prolog. % hsort(In,Out): % In is a list of structures, node(X,H), where X is a node label % and H is h(X) the heuristic estimate assigned to X % Out is the same as In after the nodes have been sorted % in order by increasing H value. % Implementation: use […]

Read More