Skip to content

This repository contains assignments of CS451-Introduction to Artificial Intelligence course at Özyeğin University

Notifications You must be signed in to change notification settings

GokselOnal/Artificial-Intelligence

Repository files navigation

Introduction to Artificial Intelligence

N-Puzzle

    N Puzzle problem consist of N tiles where N can only be (2M-1) and a one empty tile in a square board. This square board is divided to square root of N+1 rows and columns (e.g. 8-Puzzle will have 3 rows and 3 columns square board). The tiles can be move if it is adjacent to empty tile. In other words, a tile only allowed to swap its position with empty tile if that tile is neighbor of empty tile. Purpose of the N Puzzle problem is reaching the goal state by changing the position of tiles.

    According to given initial state and goal state, algorithms are implemented, number of visited states are observed for each algorithm and compared for different test cases.

    indir

    Algorithms

    • Breadth-First Search
    • Depth-First Search
    • Uniform Cost Search
    • A* Search

Travelling Salesman

    Travelling salesman problem (TSP) tries to find shortest possible route among given cities. Salesman’s aim is that visit the all given cities and return the origin city with shortest route. It is a well-known algorithmic problem in the computer science. In this assignment, travelling salesman problem is solved with genetic algorithm.

    220px-GLPK_solution_of_a_travelling_salesman_problem svg


    Genetic Algorithm

    Genetic algorithm is a heuristic that is inspired by Charles Darwin. This algorithm is the process of natural selection. Fittest individuals are selected in order to produce child of next generation.

    There are 5 steps of the genetic algorithm in order to make an evolution.

    • Initial population
    • Fitness function
    • Selection
    • Crossover
    • Mutation

    Population, Chromosomes and Genes

    • A route can be thought as a Chromosome.
    • A city can be thought as a Gene of its chromosome.
    • All chromosomes can be thought as Population of that generation.

    1_vIrsxg12DSltpdWoO561yA

    Main goal of this assignment, implement the genetic algorithm to solve travelling salesman problem for many different cases and analyze the test results of that cases.


Hand-written Digit Recognition

    Handwritten digit recognition is one of the most well-known computer vision problem. The handwritten digit recognition is the ability of computers to recognize human handwritten digits. In other words, it is about prediction of handwritten digits (0-9). In this assignment, some Machine Learning algorithms are used to predict digits.

    mnist-300x168 new

    Algorithms

    • K-Nearest Neighbor
    • Decision Tree
    • Naive Bayes

    Test cases are applied with different parameters and results are analyzed.


Automated Negotiating Agent


Özyeğin University
Spring 2020-2021
Introduction to Artificial Intelligence
CS451

About

This repository contains assignments of CS451-Introduction to Artificial Intelligence course at Özyeğin University

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published