A006_ClosestPair

2021. 10. 12. 20:45· Algorithms

 

<Window x:Class="ClosestPair.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:ClosestPair"
        mc:Ignorable="d"
        Title="MainWindow" Height="720" Width="1200">
    <StackPanel>
        <Grid Height="600">
            <Canvas Name="canvas1" Background="Beige" Width="1100" Height="500"/>
        </Grid>
        <StackPanel Orientation="Horizontal" 
                    HorizontalAlignment="Center">
            <Button Width="100" Content="생성" Click="Button_Click"/>
            <TextBlock Width="50"/>
            <Button Width="100" Content="찾기" Click="Button_Click_1"/>
            <TextBlock Width="50"/>
            <Button Width="100" Content="분할정복" Click="Button_Click_2"/>
        </StackPanel>
    </StackPanel>
</Window>

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace ClosestPair
{
  class PointPair
  {
   
    public Point P1 { get; set; } 
    public Point P2 { get; set; }
    public double Dist { get; set; }

    public PointPair(Point p1, Point p2, double dist) // 생성자
    {
      P1 = p1;
      P2 = p2;
      Dist = dist;
    }
  }
}
저작자표시 비영리 동일조건 (새창열림)

'Algorithms' 카테고리의 다른 글

A008_Dijkstra  (0) 2021.10.21
A007_Prim  (0) 2021.10.12
A005_SortWithGraph  (0) 2021.09.24
A004_hanoi  (0) 2021.09.17
A003_fibo  (0) 2021.09.17
'Algorithms' 카테고리의 다른 글
  • A008_Dijkstra
  • A007_Prim
  • A005_SortWithGraph
  • A004_hanoi
페프
페프
페프
FFeFF SPACE
페프
전체
오늘
어제
  • 분류 전체보기
    • C++
      • Foundation
      • Programmers
    • C#
      • Foundation
      • Basics
    • Algorithms
    • SQLD
    • Web
      • JavaScript
    • AI-900
    • ETC

블로그 메뉴

  • About
  • 📗 Github
  • Programming_II
hELLO · Designed By 정상우.v4.2.2
페프
A006_ClosestPair
상단으로

티스토리툴바

개인정보

  • 티스토리 홈
  • 포럼
  • 로그인

단축키

내 블로그

내 블로그 - 관리자 홈 전환
Q
Q
새 글 쓰기
W
W

블로그 게시글

글 수정 (권한 있는 경우)
E
E
댓글 영역으로 이동
C
C

모든 영역

이 페이지의 URL 복사
S
S
맨 위로 이동
T
T
티스토리 홈 이동
H
H
단축키 안내
Shift + /
⇧ + /

* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.