GithubHelp home page GithubHelp logo

algo_dfs's Introduction

Algo_DFS

INIT

Algo-DFS 2015년도 세종대학교 나중채 알고리즘 3번째 실습 과제

과제관련 문서 : http://bin.jvnv.net/f/zuZJm/%EA%B3%BC%EC%A0%9CP3-DFS.pdf

DFS알고리즘을 구현하되 현재시점에서 다른 간선으로 갈때 우선순위를

  1. 시작지점과의 최단 거리가 가장 짧은 정점을 우선
  2. 정점이 가지고있는 숫자가 가장 작은것을 우선

위와 같은 조건으로 시행.

대략적 프로그래밍 고비

  1. 인접리스트를 위한 ADT 작성,
  2. 교수님이 제시한 우선순위를 Func DFS( some parm . . . ){ setNearEdgeDist// in this Edge, set neighborhood's DIST while( unchecked edge exist ){ DFS( getBestEdge ); } exit }

이런식으로 그냥 해결하면 될줄알았는데 교수님이 원하는것은 DFS한 재귀만으로 구할수있는(예측가능한)

최소 간선이 아니라 실제의 최종적 최소 간선이라는걸 깨닫고

DFS이전에 BFS로 실제적 최종적 최소 간선 리스트를 만들어서 처리.

-> 이러니 됨 ㄱ-

algo_dfs's People

Contributors

pmnxis avatar

Stargazers

 avatar

Watchers

 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.