• Title/Summary/Keyword: 그리디 알고리즘

Search Result 42, Processing Time 0.023 seconds

An Example-Based Approach to the Synthesis of Rube Goldberg Machines (루브 골드버그 기계의 합성을위한 예제 기반 접근방법)

  • Lee, Kang Hoon
    • Journal of the Korea Computer Graphics Society
    • /
    • v.20 no.2
    • /
    • pp.25-32
    • /
    • 2014
  • We present an example-based approach to synthesizing physically simulated Rube Goldberg machines in which a series of rigid body elements are sequentially triggered and driven along the causal chain. Given a set of elements, our goal is to automatically instantiate and arrange those elements to meet the user-specified requirements including the start and end positions, and the boundary of movement. To do so, we first sample small-scale machines consisting of only a few elements randomly, and represent the connectivity between every pair of components as a graph structure. Searching over possible paths in this graph solves our problem by finding a path that can be unrolled to satisfy the given requirements, and then assembling components sequentially along the solution path. In order to ensure that the machine works precisely in a physically simulated environment, we finally elaborate the layout of assembled components by a simple greedy algorithm. We demonstrate the usefulness of our approach by displaying a large diversity of Rube Goldberg machines built with only five kinds of elements.

A case study on optimal location modeling of battery swapping & charging facility for the electric bus system (전기버스를 위한 배터리 자동 교환-충전인프라 배치 최적화 모형개발 및 적용 사례 분석)

  • Kim, Seung-Ji;Kim, Wonkyu;Kim, Byung Jong;Im, Hyun Seop
    • The Journal of The Korea Institute of Intelligent Transport Systems
    • /
    • v.12 no.1
    • /
    • pp.121-135
    • /
    • 2013
  • This paper propose an efficient algorithm for selecting electric bus charging facility location. In nature, the optimal charging facility location problem is similar to Set Covering Problem. Set Covering Problem is the problem of covering all the rows of an $m{\times}n$ matrix of ones and zeros by a subset of columns with a minimal cost. It has many practical applications of modeling of real world problems. The Set Covering Problem has been proven to be NP-Complete. In order to overcome the computational complexity involved in seeking optimal solutions, this paper present an enhanced greedy algorithm and simulated annealing algorithm. In this paper, we apply the developed algorithm to Seoul's public bus system.