លំហសិក្សាកម្ពុជា
V1.0
Homework for my own studies!!.
A Knowledge Base is a collection of facts, rules, and information that an AI system uses to
solve problems or make decisions.
Example:
A medical expert system contains these rules:
Purpose: To store general knowledge and rules that the system can use repeatedly.
1.2 Working Memory (WM)
Working Memory stores temporary information about the current problem that an AI system
is solving.
Example:
A patient visits a medical expert system:
Knowledge Base (KB):
Working Memory (WM):
Inference Engine:
Result: The system concludes that the person has a fever.
3. Why does a logic error need information for the expected output?
Logic Errors need expected output because we need to know what the correct result should be.
So, we can compare it with the actual result from the program.
This indicates a logic error because we used - instead of +.
Why do we need Expected Output?
We need Expected Output to compare it with Actual Output, identify logic errors, and correct the program to produce the correct result.
4. When evidence isn't enough, how should the program respond?
When evidence isn't enough, the program should respond that it lacks sufficient information to draw a reliable conclusion. It should ask for more information or evidence instead of guessing.
5. Why doesn’t Run Submitted Code on the Flask Server?
We should not run submitted code directly on the Flask server because it may contain malicious code that could damage the server, access sensitive data, or execute unauthorized commands. Instead, we should run it in a secure, isolated environment (sandbox) to protect the server.
Reference:
- ChatGPT & Google: For search keywords and Q&A :
IOE Notes. Artificial Intelligence: Expert System. Available at: https://ioenotes.edu.np/media/notes/AI/Artiticial-Intelligence-AI-Chapter-7-2-expert-system-ioenotes-edu-np.pdf
ScienceDirect. Expert System – An Overview. Available at: https://www.sciencedirect.com/topics/computer-science/expert-system
Python Software Foundation. Errors and Exceptions. Available at: https://docs.python.org/3/tutorial/errors.html
Pallets Projects. Flask Security Considerations. Available at: https://flask.palletsprojects.com/en/stable/web-security/
Pallets Projects. Flask Quickstart. Available at: https://flask.palletsprojects.com/en/stable/quickstart/
PortSwigger. Python Code Injection. Available at: https://portswigger.net/kb/issues/00100f10_python-code-injection
- Grammarly: For grammar in this homework writing: https://www.grammarly.com/?utm_source=chatgpt.com
មតិយោបល់ 0