Git Product home page Git Product logo

algoritma_analizi_proje's Introduction

BLM3021 - Algoritma Analizi Dönem Projesi 2018-2019 Bahar Yarıyılı

Ders Yürütücüsü: Dr. Öğr. Üyesi M. Amaç GÜVENSAN

Konu : Graf Üzerinde Arama İşlemi

Problem: Kevin Bacon Sayısının Bulunması

Bir film artistinin Kevin Bacon Sayısı, o artistin Kevin Bacon’a en az kaç film uzakta olduğudur (http://oracleofbacon.org).

• Örneğin Kevin Bacon’ın Kevin Bacon Sayısı sıfırdır. Robert De Niro Kevin Bacon ile Sleepers filminde birlikte oynadığı için Kevin Bacon Sayısı 1’dir.

• Elvis Presley Kevin Bacon’la aynı filmde oynamamıştır. Fakat Change of Habit filminde Edward Asner ile oynamıştır. Asner de JFK filminde Kevin Bacon ile birlikte oynadığı için Elvis Presley’in Kevin Bacon Sayısı 2’dir.

Bu çalışmada aşağıdaki işlemleri yapabilen bir sistem tasarlayınız:

  1. Adı verilen bir artistin Kevin Bacon Sayısını ve bununla ilgili bilgiyi veriniz. Eğer Kevin Bacon sayısı 6’yı geçiyorsa bu artistin Kevin Bacon’la bağlantısı yoktur.

• Örneğin Arnold Schwarzenegger’in Kevin Bacon sayısı ile ilgili programınız aşağıdaki mesajı vermelidir. (Mesajları istediğiniz formatta yazdırabilirsiniz.) : Arnold Schwarzenegger Kevin Bacon sayısı : 2 Schwarzenegger, Arnold - Furst, Stephen "Scavenger Hunt (1979)" Furst, Stephen - Bacon, Kevin "Animal House (1978)"

  1. Adı verilen iki artistin birbirine mesafesini bulunuz ve bununla ilgili bilgiyi veriniz.

• Örneğin Jack Nicholson ve Meryl Streep’in mesafesi 1’dir. Bununla ilgili, programınız aşağıdaki mesajı vermelidir: Jack Nicholson – Meryl Streep : 1 Nicholson, Jack – Streep, Meryl : "Heartburn (1986) "

  1. Ödevinizin çalışmasını ftp://ftp.cs.princeton.edu/pub/cs226/bacon/input-mpaa.txt dosyasını kullanarak test ediniz.

Yapılacak İşlemler:

  1. Artistleri ve filmleri aşağıdaki şekilde görüldüğü gibi, artistlerden sadece filmlere, filmlerden de sadece artistlere bağlantı olacak şekilde bipartite bir grafa yerleştiriniz.

  2. Bu graf üzerinde BFS(Breadth First Search) arama yöntemini kullanarak algoritmanızı geliştiriniz.

  3. Algoritmanızın programını C dilinde yazınız.

algoritma_analizi_proje's People

Contributors

ozgurkan avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.