swayam-logo

An Introduction to Artificial Intelligence

--> --> --> --> --> --> --> --> --> --> --> --> --> --> --> --> --> -->

Note: This exam date is subject to change based on seat availability. You can check final exam date on your hall ticket.

Page Visits

Course layout, books and references, instructor bio.

artificial intelligence assignment 1

Prof. Mausam

Course certificate.

artificial intelligence assignment 1

DOWNLOAD APP

artificial intelligence assignment 1

SWAYAM SUPPORT

Please choose the SWAYAM National Coordinator for support. * :

Course Status : Completed
Course Type : Elective
Duration : 12 weeks
Category :
Credit Points : 3
Undergraduate
Start Date : 24 Jan 2022
End Date : 15 Apr 2022
Enrollment Ends : 09 Feb 2022
Exam Date : 24 Apr 2022 IST
 
 
 

artificial intelligence assignment 1

Assignments

Robot localization.

Browse Course Material

Course info.

  • Patrick Henry Winston

Departments

  • Electrical Engineering and Computer Science

As Taught In

  • Algorithms and Data Structures
  • Artificial Intelligence
  • Theory of Computation

Learning Resource Types

Assignments.

These problem sets (also known as “labs” in 6.034) are from the Fall 2012 version of the course, but should line up well with the Fall 2010 lectures.

PROBLEM SETS TOPICS CODE FILES
Python programming, symbolic algebra (This ZIP file contains: 5 .py files.)
Forward chaining, backward chaining and goal trees (This ZIP file contains: 7 .py files.)
Search, using heuristics, optimal search, graph heuristics (This ZIP file contains: 5 .py files.)
Game search (This ZIP file contains: 7 .py files.)
Constraint satisfaction problems, k-nearest neighbors, decision trees (This ZIP file contains: 12 .py files, 6 .ord files, 4 .csv files and 2 .dat files. sudoku_csp.py is courtesy of Justin Cullen, and is used with permission.)
Neural nets, boosting (This ZIP file contains: 12 .py files, 2 .dat files, 5 .csv files, 6 .ord files, 1 .out file, and 9 .tab files.)

facebook

You are leaving MIT OpenCourseWare

Navigation Menu

Search code, repositories, users, issues, pull requests..., provide feedback.

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly.

To see all available qualifiers, see our documentation .

  • Notifications You must be signed in to change notification settings

COMP3308 – Introduction to Artificial Intelligence - Assignment 1

joshuatvernon/COMP3308-Assignemnt-1

Folders and files.

NameName
22 Commits

Repository files navigation

Comp3308-assignemnt-1, assignment 1: search methods.

Submission: 5pm, Friday 21 April, 2017 (mid‐semester break). This assignment is worth 10% of your final mark. It is an individual assignment; no group work

Late submissions policy

No late submissions are allowed.

Programming languages

Your implementation can be written in Python, Java, C, C++ or MATLAB. The assignment will be tested on the University machines, so your code must be compatible with the language version installed on those machines.

Your assignment must be completed individually using the submission tool PASTA ( http://comp3308.it.usyd.edu.au ). In order to connect to the website, you’ll need to be connected to the university VPN. You can read this page to find out how to connect to the VPN. PASTA will allow you to make as many submissions as you wish, and each submission will provide you with feedback on each of the components of the assignment. You last submission before the assignment deadline will be marked, and the mark displayed on PASTA will be the final mark for your assignment

1. The 3‐digit puzzle

In this assignment, you will implement a number of search algorithms to solve the 3‐digit puzzle. Given are two 3‐digit numbers called S (start) and G (goal) and also a set of 3‐digit numbers called forbidden. To Solve the puzzle, we want to get from S to G in the smallest number of moves. A move is a transformation of one number into another number by adding or subtracting 1 to one of its digits. For example, a move can take you from 123 to 124 by adding 1 to the last digit or from 953 to 853 by subtracting 1 from the first digit. Moves must satisfy the following constraints:

  • You cannot add to the digit 9 or subtract from the digit 0;
  • You cannot make a move that transforms the current number into one of the forbidden numbers;
  • You cannot change the same digit twice in two successive moves.

Note that since the numbers have 3 digits, at the beginning there are at most 6 possible moves from S. After the first move, the branching factor is at most 4, due to the constraints on the moves and especially due to constraint 3.

For the purpose of this assignment numbers starting with 0, e.g. 018, are considered 3‐digit numbers.

  • Write a program to find a solution of the puzzle using the following 6 search strategies: BFS, DFS, IDS, Greedy, A* and Hill‐climbing. Use the Manhattan heuristic as a heuristic for A* and Greedy and also as the evaluation function in Hill‐climbing. The Manhattan heuristic for a move between two numbers A and B is the sum of the absolute differences of the corresponding digits of these numbers, e.g. h(123, 492) = |1 - 4| + |2 - 9| + |3 - 2| = 11.
  • Avoid cycles. When selecting a node from the fringe for expansion, if it hasn’t been expanded yet, expand it, otherwise discard it. Hint: It is not just the three digitsthat you need to consider when determining if you have expanded a node before. Two nodes are the same if a) they have the same 3 digits; and b) they have the same ‘child’ nodes.
  • 1 is subtracted from the first digit
  • 1 is added to the first digit
  • 1 is subtracted from the second digit
  • 1 is added to the second digit
  • 1 is subtracted from the third digit
  • 1 is added to the third digit Example: the order of the children of node 678 coming from parent 668 is 578, 778, 677, 679. Note that there are no children for the second digit as it already has been changed in the previous move (constraint 3).
  • For the heuristic search strategies: if there are nodes with the same priority for expansion, expand the last added node.
  • Set a limit of 1000 expanded nodes maximum, and when it is reached, stop the search and print a message that the limit has been reached (see section “Input and Output” for the exact message required).

3. Input and Ouput

As your program will be automatically tested, it is important that you adhere to these strict rules for program input and output.

Your program should be called ThreeDigits, and will be run from the command line with the following arguments:

  • A single letter representing the algorithm to search with, out of B for BFS, D for DFS, I for IDS, G for Greedy, A for A*, H for Hill‐climbing.
  • A filename of a file to open for the search details. This file will contain the following:

For example, the file puzzle.txt might contain the following:

This file means that the search algorithm will start at state 345, and the goal is state 555. The search may not pass through any of 355, 445 or 554. Remember that the last line may not be present; i.e. there are no forbidden values.

The following examples show how the program would be run for each of the submission languages, assuming we want to run the A* search algorithm, and the input is in a file called sample.txt .

Python (version 2.7.9):

Java (version 1.8):

C (gcc version 4.4.7):

C++ (gcc version 4.4.7):

You program will output two lines only. The first line will contain the solution path found from the start node to the goal node (inclusive), in the form of states separated by commas. If no path can be found with the given parameters, then the first line should be “No solution found.”.

The second line should be the order of nodes expanded during the search process, in the form of states separated by commas. If no path was found, this should still print the list of expanded nodes. Remember that this list should never exceed 1000 states (point 5 in the Tasks section).

sample.txt:

Note that the outputs of BFS and IDS here are quite long, and so the second line has wrapped. These outputs are still only two lines.

Search Method Output
BFS
DFS
IDS
Greedy
Hill Climbing
A*

4. Submission Details

This assignment is to be submitted electronically via the PASTA submission system.

Your submission files should be zipped together in a single .zip file and include a main program called ThreeDigits. Valid extensions are .java, .py, .c, .cpp, .cc, and .m. If your program contains only a single file, then you can just submit the file without zipping it.

Upload your submission on PASTA under Assignment 1.

  • Python 95.2%

Encyclopedia Britannica

  • History & Society
  • Science & Tech
  • Biographies
  • Animals & Nature
  • Geography & Travel
  • Arts & Culture
  • Games & Quizzes
  • On This Day
  • One Good Fact
  • New Articles
  • Lifestyles & Social Issues
  • Philosophy & Religion
  • Politics, Law & Government
  • World History
  • Health & Medicine
  • Browse Biographies
  • Birds, Reptiles & Other Vertebrates
  • Bugs, Mollusks & Other Invertebrates
  • Environment
  • Fossils & Geologic Time
  • Entertainment & Pop Culture
  • Sports & Recreation
  • Visual Arts
  • Demystified
  • Image Galleries
  • Infographics
  • Top Questions
  • Britannica Kids
  • Saving Earth
  • Space Next 50
  • Student Center
  • Introduction & Top Questions
  • Problem solving
  • Symbolic vs. connectionist approaches
  • Artificial general intelligence (AGI), applied AI, and cognitive simulation
  • Machine learning
  • Large language models and natural language processing
  • Autonomous vehicles
  • Virtual assistants
  • Is artificial general intelligence (AGI) possible?

artificial intelligence

What is artificial intelligence?

Grade school students working at computers in a school library. Study learn girl child class technology

artificial intelligence

Our editors will review what you’ve submitted and determine whether to revise the article.

  • Harvard University - Science in the News - The History of Artificial Intelligence
  • National Center for Biotechnology Information - PubMed Central - The rise of artificial intelligence in healthcare applications
  • Lifewire - What is artificial intelligence?
  • Computer History Museum - AI and Robotics
  • Internet Encyclopedia of Philosophy - Artificial Intelligence
  • artificial intelligence - Children's Encyclopedia (Ages 8-11)
  • artificial intelligence (AI) - Student Encyclopedia (Ages 11 and up)
  • Table Of Contents

artificial intelligence

Artificial intelligence is the ability of a computer or computer-controlled robot to perform tasks that are commonly associated with the  intellectual processes characteristic of humans , such as the ability to reason. Although there are as yet no AIs that match full human flexibility over wider domains or in tasks requiring much everyday knowledge, some AIs perform specific tasks as well as humans. Learn more.

Are artificial intelligence and machine learning the same?

No, artificial intelligence and machine learning are not the same, but they are closely related. Machine learning is the method to train a computer to learn from its inputs but without explicit programming for every circumstance. Machine learning helps a computer to achieve artificial intelligence.

Recent News

artificial intelligence (AI) , the ability of a digital computer or computer-controlled robot to perform tasks commonly associated with intelligent beings. The term is frequently applied to the project of developing systems endowed with the intellectual processes characteristic of humans, such as the ability to reason, discover meaning, generalize, or learn from past experience. Since their development in the 1940s, digital computers have been programmed to carry out very complex tasks—such as discovering proofs for mathematical theorems or playing chess —with great proficiency. Despite continuing advances in computer processing speed and memory capacity, there are as yet no programs that can match full human flexibility over wider domains or in tasks requiring much everyday knowledge. On the other hand, some programs have attained the performance levels of human experts and professionals in executing certain specific tasks, so that artificial intelligence in this limited sense is found in applications as diverse as medical diagnosis , computer search engines , voice or handwriting recognition, and chatbots .

What is intelligence?

  • Investing in AI stocks
  • Using AI for Money Management
  • How AI is Changing Work
  • Ethical Questions and AI
  • AI and Regulation

All but the simplest human behavior is ascribed to intelligence, while even the most complicated insect behavior is usually not taken as an indication of intelligence. What is the difference? Consider the behavior of the digger wasp , Sphex ichneumoneus . When the female wasp returns to her burrow with food, she first deposits it on the threshold , checks for intruders inside her burrow, and only then, if the coast is clear, carries her food inside. The real nature of the wasp’s instinctual behavior is revealed if the food is moved a few inches away from the entrance to her burrow while she is inside: on emerging, she will repeat the whole procedure as often as the food is displaced. Intelligence—conspicuously absent in the case of the wasp—must include the ability to adapt to new circumstances.

(Read Ray Kurzweil’s Britannica essay on the future of “Nonbiological Man.”)

Psychologists generally characterize human intelligence not by just one trait but by the combination of many diverse abilities. Research in AI has focused chiefly on the following components of intelligence: learning, reasoning, problem solving , perception , and using language.

computer chip. computer. Hand holding computer chip. Central processing unit (CPU). history and society, science and technology, microchip, microprocessor motherboard computer Circuit Board

There are a number of different forms of learning as applied to artificial intelligence. The simplest is learning by trial and error. For example, a simple computer program for solving mate-in-one chess problems might try moves at random until mate is found. The program might then store the solution with the position so that, the next time the computer encountered the same position, it would recall the solution. This simple memorizing of individual items and procedures—known as rote learning—is relatively easy to implement on a computer. More challenging is the problem of implementing what is called generalization . Generalization involves applying past experience to analogous new situations. For example, a program that learns the past tense of regular English verbs by rote will not be able to produce the past tense of a word such as jump unless the program was previously presented with jumped , whereas a program that is able to generalize can learn the “add -ed ” rule for regular verbs ending in a consonant and so form the past tense of jump on the basis of experience with similar verbs.

(Read Yuval Noah Harari’s Britannica essay on the future of “Nonconscious Man.”)

  • Amazon Quiz
  • Flipkart Quiz
  • Play & Win 50,000 Coins
  • Privacy Policy

NPTEL An Introduction to Artificial Intelligence Assignment 1 Answers 2022 | Week 1 Answers: QUIZXP

  • by QuizXp Team
  • January 22, 2022 February 22, 2022

An Introduction to Artificial Intelligence Assignment 1

Are you looking for the Answers to NPTEL An Introduction to Artificial Intelligence Assignment 1 – IIT Delhi? This article will help you with the answer to the  Nation al Programme on Technology Enhanced Learning  ( NPTEL )  Course “ NPTEL An Introduction to Artificial Intelligence Assignment 1 “

What is NPTEL An Introduction to Artificial Intelligence?

An Introduction to Artificial Intelligence by IIT Delhi course introduces the variety of concepts in the field of artificial intelligence. It discusses the philosophy of AI, and how to model a new problem as an AI problem. It describes a variety of models such as search, logic, Bayes nets, and MDPs, which can be used to model a new problem. It also teaches many first algorithms to solve each formulation. The course prepares a student to take a variety of focused, advanced courses in various subfields of AI.

CRITERIA TO GET A CERTIFICATE

Average assignment score = 25% of the average of best 8 assignments out of the total 12 assignments given in the course. Exam score = 75% of the proctored certification exam score out of 100

Final score = Average assignment score + Exam score

YOU WILL BE ELIGIBLE FOR A CERTIFICATE ONLY IF THE AVERAGE ASSIGNMENT SCORE >=10/25 AND EXAM SCORE >= 30/75. If one of the 2 criteria is not met, you will not get the certificate even if the Final score >= 40/100.

Below you can find the answers for NPTEL An Introduction to Artificial Intelligence Assignment 1

Assignment No.Answers
Assignment 1
Assignment 2
Assignment 3
Assignment 4
Assignment 5
Assignment 6
Assignment 7
Assignment 8

NPTEL An Introduction to Artificial Intelligence Assignment 1 Answers:-

Q1. Who is known as the “Father of Artificial Intelligence”?

Answer:- c – John McCarthy

Q2. What were the reasons leading to the first AI winter in 1974-80 ?

Answer:- a,c,d

Q3. Which of the following programs completed a major mathematical proof?

Q4. Which of the following is/are the reason(s) for the recent takeoff of deep learning?

Answer:- b,c,d

???? Next Week Answers: Assignment 02 ????

quizxp telegram

Q5. Strong AI hypothesis says that

Q6. Which action is a rational agent expected to prioritize?

Q7. Consider an AI agent which is given the task of sorting an array A of n distinct integers where each element ∈ {1,2,..n}. In each time step, the agent is allowed to swap two consecutive elements in the array. What are the state representations which provide complete information about the array?

Answer:- We are a little confused about the answers of 7 and 9 will update soon and notify you on the telegram channel if you know the answer then please comment down below .

quizxp telegram

Note:- We are going to post answers for all weeks you can join us on telegram for regular updates and if there are any changes in answers then will update on our telegram channel only.

Q8. Which game was AlphaGo built for, and which company was responsible for its development?

Q9. Why is Mathematical Logic considered to be an important part of AI?

Q10. What is an expert system in the context of AI?

For other courses answers:- Visit

For Internship and job updates:- Visit

Disclaimer: We do not claim 100% surety of answers, these answers are based on our sole knowledge, and by posting these answers we are just trying to help students, so we urge do your assignment on your own.

if you have any suggestions then comment below or contact us at  [email protected]

If you found this article Interesting and helpful, don’t forget to share it with your friends to get this information.

x

IMAGES

  1. (PDF) Artificial Intelligence Assignment- 1

    artificial intelligence assignment 1

  2. NPTEL An Introduction to Artificial Intelligence WEEK 1 ASSIGNMENT ANSWERS

    artificial intelligence assignment 1

  3. Lecture notes Artificial Intelligence Part 1

    artificial intelligence assignment 1

  4. NPTEL An Introduction to Artificial Intelligence Assignment 1 Answers

    artificial intelligence assignment 1

  5. An Introduction to Artificial Intelligence Assignment 1 Answers 2023

    artificial intelligence assignment 1

  6. Assignment 1

    artificial intelligence assignment 1

COMMENTS

  1. An Introduction to Artificial Intelligence || Week-1 Assignment Answers

    An Introduction to Artificial Intelligence || Week-1 Assignment Answers || NPTEL 2023 ||

  2. COMP3411-Artificial-Intelligence-Assignment-1-Prolog

    Jon-bon-Jono / COMP3411-Artificial-Intelligence-Assignment-1-Prolog Public. Notifications You must be signed in to change notification settings; Fork 1; Star 0. Prolog programs to perform some list and tree operations. The aim of the assignment is to give experience with typical Prolog programming techniques.

  3. PDF Fundamentals of Artificial Intelligence

    Fig 1.1: Applications of Artificial Intelligence Artificial Intelligence is an attempt to make a computer, a robot, or other piece of technology 'think' and process data in the same way as we humans do. AI therefore has to study how the human brain 'thinks', learns, and makes decisions when it tries to solve problems or execute a task.

  4. 6.034 Artificial Intelligence, Lab 1

    This resource contains information regarding assignment 1. ... 6.034 Artificial Intelligence, Lab 1 Download File DOWNLOAD. Course Info Instructor Patrick Henry Winston; Departments Electrical Engineering and Computer Science; As Taught In Fall 2010 Level Undergraduate. Topics Engineering. Computer Science. Algorithms and Data Structures ...

  5. Artificial intelligence assignment with images , examples and ...

    Artificial intelligence refers to a software or program that can run a thinking ability in robots or machine to perform task as like as humans. The development of digital computer in 1940s paved a way that human beings can insert some command for discovering proofs of mathematical theorem, diagnosis of the disease with accuracy.

  6. An Introduction to Artificial Intelligence

    Artificial intelligence (AI) is a fascinating and rapidly evolving field of computer science. This course will introduce you to the basic concepts, techniques and applications of AI, such as search, logic, knowledge representation, planning, learning, natural language processing and computer vision. You will also learn how to use MATLAB for implementing AI algorithms and solving real-world ...

  7. An Introduction to Artificial Intelligence

    The course introduces the variety of concepts in the field of artificial intelligence. It discusses the philosophy of AI, and how to model a new problem as a...

  8. PDF assessment id-14

    Assignment 1 The due date for submitting this assignment has passed. As per our records you have not submitted this assignment. 1) Who coined the termed Artificial Intelligence? A. Marvin Minsky B. Alan Turing C. John McCarthy D. Issac Asimov No, the answer is incorrect. Score: 0 Accepted Answers: C John McCarthy

  9. Fundamentals Of Artificial Intelligence

    This video is for providing Quiz on Fundamentals Of Artificial IntelligenceThis video is for Education Purpose This Course is provided by NPTEL - Online cou...

  10. CSE 473: Artificial Intelligence I -- Assignments

    Computer Science & Engineering University of Washington Box 352350 Seattle, WA 98195-2350 (206) 543-1695 voice, (206) 543-2969 FAX

  11. Assignments

    Problem Set 1 (PDF) Forward chaining, backward chaining and goal trees Code for Problem Set 1 (ZIP) (This ZIP file contains: 7 .py files.) Problem Set 2 (PDF) Search, using heuristics, optimal search, graph heuristics Code for Problem Set 2 (ZIP) (This ZIP file contains: 5 .py files.) Problem Set 3 (PDF) Game search

  12. Assignment 1: Recent Advances in AI Essay

    Computer Science 311 - Assignment 1: Recent Advances in AI Essay. Martin has 22 years experience in Information Systems and Information Technology, has a PhD in Information Technology Management ...

  13. Artificial Intelligence Assignment

    Cannot retrieve latest commit at this time. Part 1: The 2021 Puzzle. Description: The main objective of the code is to solve a scattered 25 (5*5) tile puzzle in least possible moves. The possible moves can be the following . Sliding any row of the puzzle one step right . Sliding any row of the puzzle one step left .

  14. joshuatvernon/COMP3308-Assignemnt-1: COMP3308

    This assignment is to be submitted electronically via the PASTA submission system. Your submission files should be zipped together in a single .zip file and include a main program called ThreeDigits. Valid extensions are .java, .py, .c, .cpp, .cc, and .m.

  15. Assignment 1 Sol

    Solution of Assignment 1 cpsc 322 2019 assignment submission instructions make sure you follow all assignment instructions on the course website and in the. ... Introduction To Artificial Intelligence 100% (1) 2. As1sol - assignment1. Introduction To Artificial Intelligence None. 5. CPSC322 Assignment 6.

  16. NPTEL Artificial Intelligence: Knowledge Representation And ...

    #ainptel #nptel #nptelaiArtificial Intelligence: Knowledge Representation And ReasoningIn this video, we're going to unlock the answers to the Artificial Int...

  17. Assignment 1- Recent Advances in AI Essay

    Jorge Basilio CS 311: Artificial Intelligence - Assignment 2: AI Survey Program Instructor: Ryan Villard. 03/19/ Artificial intelligence (AI) is an evolving field that has made significant strides in recent years. One of the most promising and exciting areas of AI is deep learning. Deep learning is a subset of machine learning that utilizes ...

  18. Artificial intelligence (AI)

    artificial intelligence (AI), the ability of a digital computer or computer-controlled robot to perform tasks commonly associated with intelligent beings. The term is frequently applied to the project of developing systems endowed with the intellectual processes characteristic of humans, such as the ability to reason, discover meaning, generalize, or learn from past experience.

  19. NPTEL An Introduction to Artificial Intelligence Assignment 1 ...

    Are you looking for the Answers to NPTEL An Introduction to Artificial Intelligence Assignment 1 - IIT Delhi?This article will help you with the answer to the National Programme on Technology Enhanced Learning Course "NPTEL An Introduction to Artificial Intelligence Assignment 1 ". What is NPTEL An Introduction to Artificial Intelligence?

  20. Assignment 1 (concepts of technologies of artificial intiligance)

    Vitaly Schetinin, 2023, lecture on artificial intelligence, university of Bedfordshire. Courage Mabani, 2023, practical session on artificial neural networks (ANNs), university of Bedfordshire. Appendix When I was doing the assignment, I did number of experiments to get the highest accuracy possible. Below is the details of my experiments ...