r/AskComputerScience • • Mar 18 '26

What is AI?

So far I've only been told AI is something that "does" this or that using this or that. Not "what" AI is. Can anyone just tell me an actual definition of AI that I can understand? Not its examples, or denominations like Machine Learning. Just pure AI. And why a function like

int main(){
int n;
std::cin >> n;
std::cout << n*n;}
``` is not an AI. Because Im totally convinced it is an AI as well, since it fits literally every single description of AI I've ever seen.
0 Upvotes

56 comments sorted by

View all comments

Show parent comment

1

u/curiouslyjake Mar 18 '26

This is taken, in spirit, Tom Mitchell's Machine Learning book, where he defines it formally. Of course, it requires explaining what "learn" and what "experience" is. However, I strongly object to your restrictive approach. To me, it means that when given a performance metric and some description of what success look like, it should result in a program that does better the more description is given.

This covers expert systems, support vector machines, multilayer perceptrons, recurrent neural networks, transformers, whatever.

I agree that strictly speaking, an expert system does not learn from experience because it does not modify it's own database. However, given more facts, it will do better. The fact that the database is modified externally is irrelevant.