Artificial intelligence(AI) is the intelligenceof machines and the branch of computer sciencethat aims to create it. AI textbooks define the field as "the study and design of intelligent agents"[|2]where an intelligent agentis a system that perceives its environment and takes actions that maximize its chances of success.[|3]?(computer scientist)">John McCarthy?, who coined the term in 1956,[|4]defines it as "the science and engineering of making intelligent machines."[|5]

The field was founded on the claim that a central property of humans, intelligence—the sapienceof Homo sapiens—can be so precisely described that it can be simulated by a machine.[|6]This raises philosophical issues about the nature of the mindand the ethics of creating artificial beings, issues which have been addressed by myth, fictionand philosophysince antiquity.[|7]Artificial intelligence has been the subject of optimism,[|8]but has also suffered setbacks[|9]and, today, has become an essential part of the technology industry, providing the heavy lifting for many of the most difficult problems in computer science.[|10]

AI research is highly technical and specialized, and deeply divided into subfields that often fail to communicate with each other.[|11]Subfields have grown up around particular institutions, the work of individual researchers, the solution of specific problems, longstanding differences of opinion about how AI should be done and the application of widely differing tools. The central problems of AI include such traits as reasoning, knowledge, planning, learning, communication, perception and the ability to move and manipulate objects.[|12]General intelligence (or "strong AI") is still among the field's long term goals.[|13]

jkkj lkj
partition([], _, [], []).partition([X|Xs], Pivot, Smalls, Bigs) :-    (   X @< Pivot ->        Smalls = [X|Rest],        partition(Xs, Pivot, Rest, Bigs)    ;   Bigs = [X|Rest],        partition(Xs, Pivot, Smalls, Rest)    ).