亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? tabuhash.c

?? Lin-Kernighan heuristic for the TSP and minimum weight perfect matching
?? C
字號:
/*3:*/#line 110 "./tabuhash.w"#include <config.h> #include "lkconfig.h"/*4:*/#line 124 "./tabuhash.w"#include <stdio.h> #include <stdlib.h> #include <stddef.h> /*:4*//*10:*/#line 242 "./tabuhash.w"#include <limits.h> /*:10*/#line 113 "./tabuhash.w"#include "error.h"#include "memory.h"#include "tabuhash.h"/*12:*/#line 260 "./tabuhash.w"inttabu_hash_bd_includes(tabu_hash_t*th,int u,int v){tabu_hash_elem_t*here;int uu= u,vv= v;if(uu<vv){uu= v;vv= u;}for(here= th->chain[u^v];here;here= here->next){/*32:*/#line 521 "./tabuhash.w"#if TABUHASH_MAX_VERBOSE >= 160{extern int verbose;if(verbose>=200){printf("tabu_hash_includes: check chain %p for %d %d\n",here,uu,vv);}}#endif/*:32*/#line 268 "./tabuhash.w"if(here->u==uu&&here->v==vv){/*29:*/#line 497 "./tabuhash.w"#if TABUHASH_MAX_VERBOSE >= 180{extern int verbose;if(verbose>=180){printf("tabu_hash_includes: %d %d is tabu\n",u,v);}}#endif/*:29*/#line 270 "./tabuhash.w"return 1;}}/*28:*/#line 488 "./tabuhash.w"#if TABUHASH_MAX_VERBOSE >= 180{extern int verbose;if(verbose>=180){printf("tabu_hash_includes: %d %d is not tabu\n",u,v);}}#endif/*:28*/#line 274 "./tabuhash.w"return 0;}int(*tabu_hash_unbd_includes)(tabu_hash_t*th,int u,int v)= tabu_hash_bd_includes;/*:12*//*14:*/#line 298 "./tabuhash.w"tabu_hash_t*tabu_hash_bd_create(int vertex_bound,int max_size){tabu_hash_t*th;/*9:*/#line 224 "./tabuhash.w"th= new_of(tabu_hash_t);th->chain_limit= vertex_bound-1;th->chain_limit|= th->chain_limit>>1;th->chain_limit|= th->chain_limit>>2;th->chain_limit|= th->chain_limit>>4;th->chain_limit|= th->chain_limit>>8;th->chain_limit|= th->chain_limit>>16;#if SIZEOF_INT==8th->chain_limit|= th->chain_limit>>32;#endiferrorif(th->chain_limit==INT_MAX,"Too many vertices (%d) to use hashing",vertex_bound);th->chain_limit+= 1;th->chain= new_arr_of_zero(tabu_hash_elem_t*,th->chain_limit);th->dirty= dirty_create(th->chain_limit,0,0,__FILE__,__LINE__);/*:9*/#line 303 "./tabuhash.w"errorif(max_size<=0,"Maximum tabu list size (%d) must be positive.",max_size);th->thread= new_arr_of(tabu_hash_elem_t,max_size);th->max_size= max_size;th->size= 0;return th;}/*:14*//*15:*/#line 312 "./tabuhash.w"voidtabu_hash_bd_destroy(tabu_hash_t*th){if(th){free_mem(th->thread);mem_deduct(sizeof(tabu_hash_elem_t*)*th->max_size);th->max_size= 0;th->size= 0;/*11:*/#line 246 "./tabuhash.w"free_mem(th->chain);mem_deduct(sizeof(tabu_hash_elem_t*)*th->chain_limit);th->chain_limit= 0;dirty_destroy(th->dirty);free_mem(th);mem_deduct(sizeof(tabu_hash_t));/*:11*/#line 320 "./tabuhash.w"}}/*:15*//*16:*/#line 332 "./tabuhash.w"voidtabu_hash_bd_add(tabu_hash_t*th,int u,int v){const int h= u^v;tabu_hash_elem_t*was_dirty;int uu= u,vv= v;#if defined(TABUHASH_DEBUG)errorif(th->size>=th->max_size,"Bounded tabu list already saturated with %d elements.",th->size);#endifif(u<v){uu= v;vv= u;}th->thread[th->size].u= uu;th->thread[th->size].v= vv;was_dirty= th->thread[th->size].next= th->chain[h];th->chain[h]= th->thread+th->size;th->size++;if(!was_dirty)dirty_add(th->dirty,h);/*24:*/#line 459 "./tabuhash.w"#if TABUHASH_MAX_VERBOSE >= 160{extern int verbose;if(verbose>=160){printf("tabu_hash_bd_add: Added %d %d\n",u,v);}if(verbose>=500){/*26:*/#line 482 "./tabuhash.w"/*:26*/#line 464 "./tabuhash.w"}}#endif/*:24*/#line 350 "./tabuhash.w"}/*:16*//*17:*/#line 358 "./tabuhash.w"voidtabu_hash_bd_make_empty(tabu_hash_t*th){int c;dirty_set_t*dirty= th->dirty;while((c= dirty_remove(dirty))>=0)th->chain[c]= NULL;th->size= 0;/*30:*/#line 505 "./tabuhash.w"#if TABUHASH_MAX_VERBOSE >= 160{extern int verbose;if(verbose>=160){printf("tabu_hash_bd_make_empty\n");}}#endif/*:30*/#line 366 "./tabuhash.w"}/*:17*//*20:*/#line 390 "./tabuhash.w"tabu_hash_t*tabu_hash_unbd_create(int vertex_bound,int max_size){tabu_hash_t*th;/*9:*/#line 224 "./tabuhash.w"th= new_of(tabu_hash_t);th->chain_limit= vertex_bound-1;th->chain_limit|= th->chain_limit>>1;th->chain_limit|= th->chain_limit>>2;th->chain_limit|= th->chain_limit>>4;th->chain_limit|= th->chain_limit>>8;th->chain_limit|= th->chain_limit>>16;#if SIZEOF_INT==8th->chain_limit|= th->chain_limit>>32;#endiferrorif(th->chain_limit==INT_MAX,"Too many vertices (%d) to use hashing",vertex_bound);th->chain_limit+= 1;th->chain= new_arr_of_zero(tabu_hash_elem_t*,th->chain_limit);th->dirty= dirty_create(th->chain_limit,0,0,__FILE__,__LINE__);/*:9*/#line 395 "./tabuhash.w"th->elem_pool= pool_create(sizeof(tabu_hash_elem_t),max_size> 0?max_size:120);return th;}/*:20*//*21:*/#line 402 "./tabuhash.w"voidtabu_hash_unbd_destroy(tabu_hash_t*th){if(th){pool_destroy(th->elem_pool);/*11:*/#line 246 "./tabuhash.w"free_mem(th->chain);mem_deduct(sizeof(tabu_hash_elem_t*)*th->chain_limit);th->chain_limit= 0;dirty_destroy(th->dirty);free_mem(th);mem_deduct(sizeof(tabu_hash_t));/*:11*/#line 408 "./tabuhash.w"}}/*:21*//*22:*/#line 415 "./tabuhash.w"voidtabu_hash_unbd_add(tabu_hash_t*th,int u,int v){const int h= u^v;tabu_hash_elem_t*e= pool_alloc(th->elem_pool);tabu_hash_elem_t*was_dirty;int uu= u,vv= v;if(u<v){uu= v;vv= u;}e->u= uu;e->v= vv;was_dirty= e->next= th->chain[h];th->chain[h]= e;if(!was_dirty)dirty_add(th->dirty,h);/*25:*/#line 470 "./tabuhash.w"#if TABUHASH_MAX_VERBOSE >= 160{extern int verbose;if(verbose>=160){printf("tabu_hash_unbd_add: Added %d %d\n",u,v);}if(verbose>=500){/*27:*/#line 485 "./tabuhash.w"/*:27*/#line 475 "./tabuhash.w"}}#endif/*:25*/#line 429 "./tabuhash.w"}/*:22*//*23:*/#line 443 "./tabuhash.w"voidtabu_hash_unbd_make_empty(tabu_hash_t*th){int c;pool_t*pool= th->elem_pool;dirty_set_t*dirty= th->dirty;while((c= dirty_remove(dirty))>=0){tabu_hash_elem_t*here;for(here= th->chain[c];here;here= here->next)pool_free(pool,here);th->chain[c]= NULL;}/*31:*/#line 513 "./tabuhash.w"#if TABUHASH_MAX_VERBOSE >= 160{extern int verbose;if(verbose>=160){printf("tabu_hash_unbd_make_empty\n");}}#endif/*:31*/#line 455 "./tabuhash.w"}/*:23*/#line 118 "./tabuhash.w"const char*tabuhash_rcs_id= "$Id: tabuhash.w,v 1.5 2000/09/17 03:12:55 neto Exp neto $";/*:3*/

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人av资源网站| 亚洲1区2区3区4区| 国产成人免费9x9x人网站视频| 日韩一级黄色大片| 日韩电影在线观看电影| 日韩美女主播在线视频一区二区三区| 日韩高清国产一区在线| 欧美电视剧免费观看| 国产精品1区2区3区在线观看| 久久午夜国产精品| 成人性生交大片免费看视频在线| 国产精品视频麻豆| 在线视频欧美区| 日韩成人av影视| 久久久午夜精品理论片中文字幕| 国产精品亚洲视频| 亚洲欧美另类小说视频| 欧美丰满美乳xxx高潮www| 久久99九九99精品| 亚洲欧美自拍偷拍色图| 欧美午夜理伦三级在线观看| 日本va欧美va精品| 国产精品网站在线| 欧美日产在线观看| 成人免费视频一区| 午夜久久久久久电影| 国产午夜精品久久久久久久 | 成人国产精品免费观看动漫| 国产精品久久久久天堂| 在线观看成人小视频| 久久99精品久久久久久国产越南 | 国产精品另类一区| 欧美日韩国产综合久久| 国产成人免费在线观看| 午夜精品影院在线观看| 国产日韩欧美高清在线| 欧美美女黄视频| www.日韩在线| 紧缚奴在线一区二区三区| 国产精品久久久久久久久免费相片 | 亚洲成人综合网站| 久久久久高清精品| 在线不卡欧美精品一区二区三区| 成人午夜免费av| 三级久久三级久久久| 亚洲欧洲另类国产综合| 欧美电影免费观看高清完整版| 日本高清无吗v一区| 国内精品伊人久久久久av一坑 | 91麻豆精品国产91久久久久| 国产成人精品三级| 老司机精品视频导航| 亚洲一区二区三区影院| 国产精品美女久久久久久久久| 日韩欧美卡一卡二| 在线播放国产精品二区一二区四区| 本田岬高潮一区二区三区| 久久激情综合网| 午夜视频一区二区三区| 一区二区激情小说| 最新欧美精品一区二区三区| 国产色综合久久| 精品蜜桃在线看| 91精品午夜视频| 欧美在线综合视频| 91免费看视频| 北条麻妃一区二区三区| 成人丝袜高跟foot| 国产精品一级在线| 国产麻豆成人传媒免费观看| 久久精品国产成人一区二区三区| 亚洲国产视频a| 亚洲精品国久久99热| 中文字幕亚洲一区二区va在线| 久久久久99精品一区| 久久综合色综合88| 精品sm在线观看| 精品国产第一区二区三区观看体验| 欧美精品xxxxbbbb| 欧美伦理影视网| 91麻豆精品国产91久久久久久久久| 欧美日韩三级一区| 欧美日韩亚洲国产综合| 欧美亚洲日本国产| 欧美日韩国产综合视频在线观看| 欧美日产在线观看| 日韩一级二级三级| 欧美成人女星排名| 久久久久久久综合日本| 国产精品网站在线观看| 亚洲私人黄色宅男| 亚洲一区免费在线观看| 偷窥国产亚洲免费视频| 日韩av成人高清| 国产一区在线观看麻豆| 国产激情视频一区二区在线观看 | 国产一区二区三区综合| 国产乱一区二区| www.久久精品| 91久久精品一区二区| 欧美日本一区二区三区四区| 欧美一区二区视频观看视频| 2021久久国产精品不只是精品| 国产调教视频一区| 亚洲女同ⅹxx女同tv| 五月激情丁香一区二区三区| 青青草原综合久久大伊人精品 | 午夜av一区二区| 美女爽到高潮91| 成人午夜在线播放| 欧美精品一卡二卡| 久久久久久影视| 一区二区三区波多野结衣在线观看| 午夜激情一区二区| 粉嫩aⅴ一区二区三区四区五区| 一本大道av一区二区在线播放| 69成人精品免费视频| 欧美激情一二三区| 香蕉加勒比综合久久| 国产成人亚洲精品狼色在线| 在线一区二区视频| 欧美精品一区二区三区一线天视频| 国产精品精品国产色婷婷| 无吗不卡中文字幕| av电影一区二区| 日韩女优av电影| ...xxx性欧美| 麻豆91在线播放免费| 不卡的av中国片| 日韩欧美国产一区在线观看| 国产精品久久久久婷婷| 蜜桃一区二区三区在线| 色一情一乱一乱一91av| 精品欧美一区二区久久| 亚洲综合在线电影| 国产成人精品免费在线| 欧美一卡2卡三卡4卡5免费| 亚洲丝袜美腿综合| 国产福利一区二区三区视频在线| 精品视频在线免费| 最新中文字幕一区二区三区| 国产精品一区二区三区网站| 欧美三级电影在线看| 成人欧美一区二区三区视频网页| 久久99久久99精品免视看婷婷 | 日韩精品最新网址| 亚洲综合激情另类小说区| 成人av集中营| 精品成人一区二区三区四区| 日本一区中文字幕 | 五月天久久比比资源色| 97久久精品人人澡人人爽| 国产亚洲综合在线| 九九视频精品免费| 欧美一区二区三级| 天堂在线一区二区| 欧美日韩国产综合一区二区| 一区二区三区在线免费观看| 成人av网站在线| 国产精品欧美久久久久一区二区 | 亚洲激情在线激情| 99久久国产综合色|国产精品| 久久久噜噜噜久噜久久综合| 韩国v欧美v亚洲v日本v| 日韩手机在线导航| 免播放器亚洲一区| 91精品久久久久久蜜臀| 亚洲成人av福利| 欧美日本在线看| 天天色 色综合| 欧美另类z0zxhd电影| 亚洲va欧美va国产va天堂影院| 欧美天堂一区二区三区| 亚洲国产成人91porn| 欧美日韩精品一区二区三区蜜桃| 亚洲午夜精品网| 欧美精品一卡二卡| 天天色综合天天| 精品日韩av一区二区| 国产米奇在线777精品观看| 久久久久九九视频| 菠萝蜜视频在线观看一区| 亚洲精品成人在线| 欧美亚洲国产一区二区三区va| 亚洲地区一二三色| 日韩午夜在线播放| 国产精品亚洲人在线观看| 国产精品日日摸夜夜摸av| 99r国产精品| 亚洲综合一二三区| 欧美电影影音先锋| 国产乱人伦偷精品视频不卡| 国产精品夫妻自拍| 欧美色综合网站| 精品一区二区国语对白| 国产三级三级三级精品8ⅰ区| 99久久国产综合精品色伊| 亚洲一区二区影院| 精品国产免费久久 | 精品一区二区三区不卡|