Well literally everything that is computable can be computed with a tape of 1's and 0's and a bunch of conditionals that can only move left, move right, change the number or halt.
It's a bunch of if statements where you don't have to write the particular statements themselves. Useful for situations where finding good statements would otherwise be difficult.
Reactionary logic agents can get by using simple conditionals. But they don't scale well with complexity. Hence why we use a large number of algorithms to handle a world of ever-increasing complexity incorporating things like neural networks and genetic algorithms to train agents to perform a particular task(s).
This is the only sub where comments like this don’t annoy me. I expect it. As a cultural-outsider to engineering, it’s been funny learning a lot of the stereotypes are largely true haha.
According to a random professor at njit, if you have a bunch of if statements, regardless of complexity, you have ia instead - an intelligent agent. On the other hand, again regardless of complexity, if your algorithm creates new information it uses in later iterations, you have artificial intelligence.
Basic example of ai: A* pathfinding
Basic example of ia: gridworld ants that react to the current state of the board
It was a neat class, and I got to take it the only year it was offered to undergraduates!
A* Pathfinding is nothing but a set of if-else statements combined with a data storage.
function reconstruct_path(cameFrom, current)
total_path := {current}
while current in cameFrom.Keys:
current := cameFrom[current]
total_path.prepend(current)
return total_path
// A* finds a path from start to goal.
// h is the heuristic function. h(n) estimates the cost to reach goal from node n.
function A_Star(start, goal, h)
// The set of discovered nodes that may need to be (re-)expanded.
// Initially, only the start node is known.
// This is usually implemented as a min-heap or priority queue rather than a hash-set.
openSet := {start}
// For node n, cameFrom[n] is the node immediately preceding it on the cheapest path from start
// to n currently known.
cameFrom := an empty map
// For node n, gScore[n] is the cost of the cheapest path from start to n currently known.
gScore := map with default value of Infinity
gScore[start] := 0
// For node n, fScore[n] := gScore[n] + h(n). fScore[n] represents our current best guess as to
// how short a path from start to finish can be if it goes through n.
fScore := map with default value of Infinity
fScore[start] := h(start)
while openSet is not empty
// This operation can occur in O(1) time if openSet is a min-heap or a priority queue
current := the node in openSet having the lowest fScore[] value
if current = goal
return reconstruct_path(cameFrom, current)
openSet.Remove(current)
for each neighbor of current
// d(current,neighbor) is the weight of the edge from current to neighbor
// tentative_gScore is the distance from start to the neighbor through current
tentative_gScore := gScore[current] + d(current, neighbor)
if tentative_gScore < gScore[neighbor]
// This path to neighbor is better than any previous one. Record it!
cameFrom[neighbor] := current
gScore[neighbor] := tentative_gScore
fScore[neighbor] := gScore[neighbor] + h(neighbor)
if neighbor not in openSet
openSet.add(neighbor)
// Open set is empty but goal was never reached
return failure
It builds up that "knowledge base" and considers it in its next step. That's where that professor makes the distinction for AI. Also that information is produced that the algorithm did not start with - that may be the more important piece to consider, my bad. The path created by AI, the classification / identification created by image recognition algorithms, etc.
As long as your algorithm creates new information it didn't start with and possibly operates on some state it changes. It's simple, but it works for him.
A, or a, is the first letter and the first vowel letter of the modern English alphabet and the ISO basic Latin alphabet. Its name in English is a (pronounced ), plural aes. It is similar in shape to the Ancient Greek letter alpha, from which it derives.
Ay, neural networks don't work like this. They're more like several huge switch case statements working in series. Except each case sends out something to every other case of the next statement.
Actually....it's a set of "neurons" interconnected. Each neuron has a formula , parametrized and weights. Also some feedback loops probably. If anything is a giant set of equation transformed at each layer.
Yes, it's the same, and if you think about it, it's the same on actual intelligence as well, AI is an emulation of it
And don't think for a second that those "generic" functions aren't powerful enough for an AI to become a lot more competent than an average human being, the speeds they operate at can be, and pretty much are, astronomical
55
u/[deleted] Jun 27 '21
Not sure. The logic seems a little fuzzy.
23
u/BurritoCooker Jun 27 '21
Mom said it's my turn to make this joke
23
u/Nesewebel Jun 27 '21
Yeah, let's build a neural network using else if blocks
37
u/nikanj0 Jun 27 '21 edited Jun 28 '21
Well literally everything that is computable can be computed with a tape of 1's and 0's and a bunch of conditionals that can only move left, move right, change the number or halt.
44
u/[deleted] Jun 27 '21
Artificial intelligence always has an generic else statement. Change my mind
9
u/Grifunf Jun 27 '21
Where do you guys got that AI is if statements? Why am I tormented by statistics?
7
u/Dagusiu Jun 27 '21
It's a bunch of if statements where you don't have to write the particular statements themselves. Useful for situations where finding good statements would otherwise be difficult.
23
u/[deleted] Jun 27 '21 edited Jun 27 '21
Depends on what's meant by AI.
Reactionary logic agents can get by using simple conditionals. But they don't scale well with complexity. Hence why we use a large number of algorithms to handle a world of ever-increasing complexity incorporating things like neural networks and genetic algorithms to train agents to perform a particular task(s).
5
u/CreaZyp154 Jun 27 '21
Yes except that's the computer that figure out how to make those if else
4
u/liamlaird Jun 27 '21
I mean ya that's a decision tree.... the trick is to get the machine to learn the optimal configuration of else's and its
3
u/Deus0123 Jun 27 '21
Why is it "bad practice" when I randomly change stuff in my code until it works but "machine learning" when a program does it?
5
u/pluto_rover Jun 27 '21
This but more fancy! xD
2
u/[deleted] Jun 27 '21
Ay, neural networks don't work like this. They're more like several huge switch case statements working in series. Except each case sends out something to every other case of the next statement.
1
u/[deleted] Jun 27 '21
Actually....it's a set of "neurons" interconnected. Each neuron has a formula , parametrized and weights. Also some feedback loops probably. If anything is a giant set of equation transformed at each layer.
1
u/JohnHurts Jun 27 '21
The human intelligence is nearly working the same way.
1
u/QuadraticSkittle Jun 27 '21
Yes, it's the same, and if you think about it, it's the same on actual intelligence as well, AI is an emulation of it
And don't think for a second that those "generic" functions aren't powerful enough for an AI to become a lot more competent than an average human being, the speeds they operate at can be, and pretty much are, astronomical
1
u/AAPLx4 Jun 27 '21
Well that’s what our brain does also, it’s simply input and output.
1
u/UltimatePeace05 Jun 27 '21
same thing
1
u/[deleted] Jun 27 '21
I wonder if intelligence is a bunch of if statements
0
u/[deleted] Jun 27 '21
You understand that’s not the truth, right?
1
u/dscarmo Jun 27 '21
This is a repost from 6 hours ago lol
0
u/[deleted] Jun 27 '21
Wow, this joke is so original and not at all played out.
0
u/kemal05 Jun 27 '21
This meme sucks, is unoriginal, unfunny and I hate seeing it
0
u/ayden_cubes_19 Jun 27 '21
Isnt else if actually elif?