일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
- 모각코
- 데이트
- 모여서각자코딩하기
- 데이터베이스
- 홍대개미
- 둔산음식점
- 헬스
- CONAtube
- 자료구조
- 계룡시맛집
- 금암동맛집
- 코나
- 복근운동
- 콜드브루
- 충대
- 유튜브
- 계룡음식점
- 아이소넥
- youtube
- 연어덮밥
- 궁동
- database
- 충대음식점
- 대전데이트
- macos
- 컴퓨터공학과
- 대학생
- 자허블
- 둔산동
- 스타벅스
- Today
- 2
- Total
- 38,958
목록채연 키우기/모각코 동아리 (18)
온종일 삽질
package 해싱; public class doubleHashingHashTable { /* * 이중해싱 */ int crushCount=0; private Entry[] entries; private int size, used; private float loadFactor; private final Entry NIL = new Entry(null, null); public doubleHashingHashTable(int capacity, float loadFactor) { entries = new Entry[capacity]; this.loadFactor = loadFactor; } public doubleHashingHashTable(int capacity) { this(capacity, 0.75F..
public class AVLTree { public int key, height; private AVLTree left, right; public static final AVLTree NIL = new AVLTree(); public AVLTree(int key) { this.key = key; left = right = NIL; } private AVLTree() { // constructs the empty tree left = right = this; height = -1; } private AVLTree(int key, AVLTree left, AVLTree right) { this.key = key; this.left = left; this.right = right; height = 1 + M..
import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; public class Graph { int size; int edgeSize; String[] graphSize; float [][] adjacency; String[] vertices; public class edge { int v,w,weight; //정점과 가중치 boolean selected; //최소 신장 트리에 사용 되었는지 여부를 반환하기 위해서 } public void add(int v, int w, int weight) { adjacency[v][w] = adjacency[w][v] = weight; } public Graph(Stri..
import java.io.*; public class Graph { private class Edge{ int v, w, weight;// 두 정점과 가중치 필드 boolean selected;// 최소 신장 트리에 적용 판단 } Edge a[]; int size; int edgeSize; int parent []; public Graph(String args){ try { /* * 파일로부터 한 줄 읽어 String으로 변환하고 split을 이용해 문자열을 구분자로 분해 * 정점의 개수는 graphSize[0]에 저장하고 엣지의 개수는 graphSize[1]에 저장 * int 타입의 parent 1차 배열을 만들어 트리를 만든다. */ BufferedReader reader = new Buffered..
public class Graph { int size; String[] vertices; boolean[][] a; // adjacency matrix boolean [] visited; int count1=0; int count2=0; public Graph(String[] args) { size = args.length; vertices = new String[size]; System.arraycopy(args, 0, vertices, 0, size); a = new boolean[size][size]; visited = new boolean[size]; //방문했는지 확인하려고 만든 boolean타입 배열이다. } public void add(String v, String w) { int i = i..