- 버블소트(bubble sort)란?
정렬하는 방식이 마치 물에서 거품(버블:Bubble)들이 움직이는 것과 비슷하다고 해서 붙여진 이름이다.
PHP Source
$array_data = array(3, 0, 2, 1, 4, 5, -1);
$size = sizeof($array_data);
for($i = 0; $i < $size; $i++){ //배열 전체 리스트
for($j = 0; $j < $size; $j++){ //배열 각 항목
if($array_data[$i] < $array_data[$j]){ // 값<각항목
$tmp = $array_data[$i];
$array_data[$i] = $array_data[$j];
$array_data[$j] = $tmp; // 큰값을 뒤로
}
}
}
print_r($array );
skill list
- Google map 길찾기
- Web Crawler in PHP
- map ajax Examples
- Naver blog 글쓰기 API설정
- Seed128 + CBC mode + PKCS5 암호화 & 복호화
- google map API Cluster
- Google API Map/3D
- Google API Map - KML / KML+DB
- 기상청 weather XML
- 스키장 weather API
- Google Analytics API
- QR Code - PHP 코딩하기
- image zoom with jQuery
- Google Gears API
- facebook 연동
- V world map(브이월드)
- 실기간 환율 htmlparser
- 마젠토 솔루션
- 결제/개인정보 조회모듈
- CDN 서버 이용
- Bubble sort 알고리즘
- snoopy test