world.search(you);
덤프버전 :
1. 개요[편집]
음악 그룹 Mili의 미니 1집 Hue에 수록된 노래. 이후 정규 3집 Millennium Mother에 수록 되었다.
2. 가사[편집]
2.1. 코드[편집]
public class WorldSorterSearcher {
public void bubbleSortByLoveliness(Thing[] things){
if(things.length<=1){
return;
}
int length = things.length;
while(length!=0){
int sorted = 0;
for(int i=1; i++){
if(things[i-1].getLoveliness()>things[i].getLoveliness()){
Thing temp = things[i];
things[i] = things[i-1];
things[i-1] - temp;
sorted = i;
}
}
length = sorted;
}
}
public void insertionSortBySweetness(Thing[] things){
if(things.length<=1{
return;
}
for(int i =1; i<things.length; i++){
for(int j=i; j>0; i--){
if(things[j].getSweetness()<things[j-i].getSweetness()){
Thing temp = things[j];
things[j] = things[j-1];
things[j-1] = temp;
}
}
}
}
public int searchTable(World world){
int index = -1;
Table[] tables = world.getTable();
Thing me = world.getMe();
for(int i=0; i<tables.length; i++){
boolean wobbly = true;
if(tables[i].getLegLength(0)==tables[i].getLegLength(1) &&
tables[i].getLegLength(1)==tables[i].getLegLength(2) &&
tables[i].getLegLength(2)==tables[i].getLegLength(3)){
wobbly = false;
}
if(tables[i].getHeight()==me.getHeightToElbow() && wobbly){
index = i;
}
}
return index;
}
public int searchEggplant(World world){
int index = -1;
Eggplant[] eggplants = world.getEggplant();
for(int i=0; i<eggplants.length; i++){
boolean nailed = false;
for(int j=0; j<eggplants[i].getDamage().length; j++){
nailed = eggplants[i].getDamage(j).getWeapon().getName().equals("nail");
}
if(eggplants[i].getColourHex().equals("800080") && nailed){
index = i;
}
}
return index;
}
public int searchCat(World world){
int index = -1;
Cat[] cats = world.getCat();
for(int i=0; i<cats.length; i++){
if(cats[i].getCoatStyle.getName().equals("bluePoint") &&
cats[i].getMeowFreq()<1 &&
cats[i].getHissFreq()<1 &&
index = i;
}
}
return index;
}
public int searchSteak(World world){
int index = -1;
Steak[] steaks = world.getSteak();
for(int i=0; i<steaks.length; i++){
if(steaks[i].getCut().getName().equals("fileMignon") &&
steaks[i].getSauce().getName.equals("mushroom") &&
steaks[i].getOutCondition().getColourHex().equals("A52A2A") &&
steaks[i].getDoneness().getName().equals("mediumRare")){
index = i;
}
}
return index;
}
public int searchFlower(World world){
int index = -1;
Flower[] flowers = world.getFlower();
for(int i=0; i<flowers.length; i++){
if(flowers[i].getWaterNeed().getWaterFreq()<5 &&
flowers[i].getStamina()<0.2 &&
flowers[i].getBloomFreq()>7885){
index = i;
}
}
return index;
}
public int searchHuman(World world){
int index = -1;
Human[] humans = world.getHuman();
for(int i=0; i<humans.length; i++){
if(humans[i].getTempHandL()>37 &&
humans[i].getTempHandR()>37 &&
humans[i].getBreath().getSmell.getStinkiness()>30 &&
humans[i].getHair().getGreasiness()>40){
index = i;
}
}
return index;
}
public int searchShit(World world){
int index = -1;
Shit[] shits = world.getShit();
for(int i=0; i<shits.length; i++){
if(shits[i].getDopeness().getValue()>70){
index = i;
}
}
return index;
}
public int[] searchUnchanged(World world){
int[] index = {-1, -1};
Thing[] thingsOld = world.getThing("0617-06-17T0617");
Thing[] thingsNew = world.getThing("3691-03-06T0901");
int smaller = thingsOld.length;
boolean oldIsSmaller = true;
if(smaller>thingsNew.length){
smaller = thingsNew.length;
oldIsSmaller = false;
}
for(int i=0; i<smaller; i++){
if(oldIsSmaller){
for(int j=0; j<thingsNew.length; j++){
if(thingsOld[i].equals(thingsNew[j])){
index[0] = i;
index[1] = j;
}
}
}
if(!oldIsSmaller){
for(int j=0; j<thingsOld.length; j++){
if(thingsNew[i].equals(thingsOld[j])){
index[0] = i;
index[1] = j;
}
}
}
}
return index;
}
public void bucketSortByLovability(Thing[] things, int bucketSize){
if(things.length<=1){
return;
}
Thing high = things[0];
Thing low = things[0];
for(int i=1; i<things.length; i++){
if(things[i].getLovability()>high.getLovability()){
high = things[i];
}
if(things[i].getLovability()>low.getLovability()){
low = things[i];
}
}
int range = (high.getLovability()-low.getLovability()+1)/2;
List<Thing>[] buckets = new ArrayList[BucketSize];
for(int i=0; i<bucketSize;i++){
buckets[i] = new ArrayList<>();
}
for(int i=0; i<things.length; i++){
buckets[(things[i].getLovability()-low.getLovability())
/range].add(things[i]);
}
int eachBucket = 0;
for(int i=0; i<things.length; i+=eachBucket){
eachBucket = 0;
while(eachBucket<buckets[i].size()){
things[i+eachBucket]=buckets[i].get(eachBucket);
eachBucket++;
}
}
for(int i =1; i<things.length; i++){
for(int j=i; j>0; i--){
if(things[j].getLovability()<things[j-1].getLovability()){
Thing temp = things[j];
things[j] = things[j-1];
things[j-1] = temp;
}
}
}
}
public void mergeSortByExp(Thing[] things){
if(things.length<=1{
return;
}
Thing[] temp = new Thing[things.length];
for(int i=1; i<things.length; i*=2){
mergeSortByExp(things, temp, low, Math.min(i+low,
things.length), Math.min(low+2*i, things.length));
}
}
for(int i=0; i<things.length; i++){
things[i] = temp[i];
}
}
private void mergeSortByExp(Thing[] things, Thing[] temp, int low, int mid, int high){
int l = low;
int m = mid;
for(int i=low; i<high; i++){
if(l<mid && (high<m || things[m].getExp()>things[l].getExp())){
temp[i] = things[l++]
}
else{
temp[i] = things[m++]
}
}
}
public int searchDog(World world){
int index = -1;
Dog[] dogs = world getDog();
for(int i=0; i<dogs.length; i++){
if(dogs[i].getIsBarking() && dogs[i].getBarkFreq()<0.5 &&
dogs[i].getBarkSound().equals("ruff")){
index = i;
}
}
return index;
}
public int searchFruit(World world){
int index = -1;
Fruit[] fruits = world.getFruit();
for(int i=0; i<fruits.length; i++){
if(fruits[i].getName().equals("tomato") &&
fruits[i].getMoisturePerc()>80 && fruits[i].getRipeness()>85{
index = i;
}
}
return index;
}
}
public class GodDoesntLoveYou {
public static void main(String[] args) {
World world = new World(617);
Lovable you = world.getYou();
Lovable me = world.getMe();
world.search(you, "Table");
world.search(you, "Eggplant");
world.search(you, "Flower");
world.search(you, "Human");
world.search(you);
world.search(you);
world.search(you);
world.search(you);
world.search(you);
world.search(you);
world.search(you);
world.search(you);
world.search(you);
world.search(me);
}
}
3. 여담[편집]
- world.execute(me);에 이어진다. 가사 또한 Java로 작성되었다. 전작은 내가 ○○라면~ 이라는 가정이 반복되는데 이번엔 네가 ○○가 된다면~ 으로 바뀐 것을 보아서, 전작과 화자와 청자가 반전된 듯하다. 그러나, world.execute(me);에는 없는 꽃, 인간이 언급되며, 긁어내린다는 표현이 존재하는 것을 보아, 실질적으로는 Rubber Human과 더 관련이 깊은 노래인 듯하다.
- 실제 가사는 영어이지만, 앨범의 가사집에는 코드와 일본어 가사만 작성되어 있었다. 공식 앨범 Millennium Mother에 실려있는 가사에는 코드와 영어가사가 둘다 실려 있으며, 일본어 가사가 빠져 있다.
- world.execute(me);와 Rubber Human에 더불어 가지, 고양이, 사랑 등이 언급된다.
- 제목에 걸맞게 버블 소트, 삽입 소트, 버킷 소트, 머지 소트 등 다양한 정렬 알고리즘을 모티브로 한 가사가 등장한다. 이는 코드 상에서도 직접 확인할 수 있다.
4. 기타[편집]
2017 라이브 투어에서 테이블이나 꽃등 유머와 함께 율동을 했다. (모모카슈가 선도하여)
5. 둘러보기[편집]
6. 관련 문서[편집]
이 문서의 내용 중 전체 또는 일부는 2023-11-06 17:10:18에 나무위키 world.search(you); 문서에서 가져왔습니다.
[1] 안심 끝 부위로 만든 스테이크