打狂犬疫苗不能吃什么| 总放屁是什么病的前兆| 95511是什么号码| 减肥吃什么瘦的快| 大水冲了龙王庙什么意思| 子宫内膜异位是什么原因造成的| 骨质增生什么意思| 流产什么样的症状表现| 意蕴什么意思| 胃胀反酸吃什么药效果好| 西晋之后是什么朝代| 社会公德的主要内容是什么| 孕妇胃疼吃什么药| 梦到鹦鹉预示着什么| 男人吃什么增大增长| 三焦是什么器官| 黑蝴蝶代表什么| nt检查是什么| 榴莲为什么臭| 手麻抽筋是什么原因引起的| 无与伦比是什么意思| 脱俗是什么意思| 免疫力低挂什么科| 廿是什么意思| 纠葛是什么意思| 血糖高的人适合吃什么水果| 观音得道日是什么时候| 拉拉秧学名叫什么| 孩子低烧吃什么药| 嗓子有痰是什么原因引起的| 两个马念什么字| 芭乐是什么意思| 月经期间吃什么补血| 宝宝吐奶是什么原因| 便黑色大便是什么情况| 什么茶降火| 胆囊炎吃什么药好| 百合花语是什么意思| 黄棕色是什么颜色| 脱发是什么病| 晨五行属什么| 潘字五行属什么| 月子里生气有什么危害| 草果在炖肉起什么作用| 医保卡是什么样子的| 乳房肿胀是什么原因| 梦见蛇缠身是什么预兆| 脑白质脱髓鞘是什么意思| 换气是什么意思| 梦见自己掉牙齿是什么征兆| 腊肉炖什么好吃| 1990是什么生肖| 七情六欲指的是什么| 情种是什么意思| 梦见佛祖是什么意思| 胎心胎芽最晚什么时候出现| 吃海带有什么好处和坏处| 2月23日什么星座| 花甲炒什么配菜好吃| 秋天喝什么粥好| 鱼吐泡泡是什么原因| 白舌苔很厚是什么病症| 12月13日是什么日子| 莫非的近义词是什么| 黑色素是什么| 动脉夹层是什么病| 梦见野猪是什么预兆| 吃蜂蜜不能吃什么食物| 晚上三点是什么时辰| 监守自盗什么意思| 羊肉与什么食物相克| 做梦掉牙齿是什么意思周公解梦| 点痣后要注意什么| 浙江大学校长什么级别| 荨麻疹吃什么中药| 头皮上长疣是什么原因造成的| 查血型挂什么科| bc什么意思| 附件炎是什么引起的| 风疹是什么样子图片| 甘耳朵旁什么字| 心内科全称叫什么| point是什么意思| q12h医学上是什么意思| 女人喝咖啡有什么好处| 锁骨窝疼可能是什么病| 雄起是什么意思| 开口腔诊所需要什么条件| feat什么意思| 右眼跳是什么预兆| 月经期可以吃什么水果| 胃出血是什么症状| 血糖高的病人吃什么| 昆明的别称是什么| 古尔丹代价是什么| 冠脉造影是什么意思| 陈光标做什么生意| 蒙氏教育是什么| 什么是淡盐水| 慷慨什么| 上呼吸道感染吃什么消炎药| 为什么大拇指只有两节| 汗血宝马什么意思| 什么是翻墙软件| 病字是什么结构| 脚手发热是什么原因| 点心是什么意思| 心跳加速心慌吃什么药| 深海鱼油什么时候吃最好| 寂寞的近义词是什么| 肾亏吃什么好| 小孩肚子痛吃什么药| 觉是什么结构| 拍身份证照片穿什么颜色衣服好看| dose是什么意思| 百忙之中什么意思| 什么叫唐卡| 牙膏什么牌子最好| 什么是韵母| c919是什么意思| 肝内胆管结石吃什么药好| 伤官配印是什么意思| 赞什么不已| 前列腺在哪里男人的什么部位| 贫嘴什么意思| 包皮是什么意思| 子宫什么样子图片| 风湿性关节炎用什么药| 摩羯男和什么星座最配| 冷得直什么| 为什么会有甲状腺结节| 羊肉配什么菜好吃| 眼皮水肿是什么原因引起的| 淡定自若什么意思| 黄瓜吃了有什么好处| 姜文和姜武是什么关系| 孕期补铁吃什么| 加特纳菌阳性是什么病| 农垦局是什么性质单位| 白头翁是什么生肖| 考虑黄体是什么意思| 孕妇吃海带有什么好处| tct检查什么项目| 金匮是什么意思| 形同陌路是什么意思| 手指发红是什么原因| 朋友过生日送什么好| 一竖读什么| 影子代表什么生肖| 乙肝是什么病严重吗| 什么东西越擦越小| 肺炎可以吃什么水果| 饱和脂肪酸是什么| 低压偏高有什么危害| 喆字五行属什么| 百香果是什么季节的水果| 天蝎座属于什么象星座| msa是什么| 什么肉不含嘌呤| 孕妇早上吃什么早餐好| 新零售是什么意思| dl是什么意思| 脚长水泡是什么原因| 破关是什么意思| 天神是什么意思| 意象是什么意思| 人生苦短是什么意思| 胶囊是什么原料做的| 尿道炎症吃什么药| 风热感冒用什么药好| 参天大树什么意思| 胃出血大便是什么颜色| 贫血要做什么检查| zm是什么意思| 阿鼻地狱是什么意思| 男人结扎有什么好处| 病毒感染咳嗽吃什么药| 皮肤黑穿什么颜色的衣服好看| 脚心出汗是什么原因女| uin是什么意思| 预调酒是什么意思| 股长是什么级别| 体悟是什么意思| 什么病不能吃豌豆| 猫什么时候传入中国| 吃什么祛斑| 尿里红细胞高什么原因| 梦到上坟是什么意思| 无花果和什么煲汤好| 梦见拉屎是什么意思| 烫伤后擦什么药好得快| 生地麦冬汤有什么功效| 办残疾证需要什么条件| 头顶疼是什么原因| 灰指甲吃什么药| 胎儿双侧肾盂无分离是什么意思| 半夜十二点是什么时辰| 买什么样的老花镜好| 一什么水井| naprogesic是什么药| 湿气重的人不能吃什么| 鲱鱼罐头那么臭为什么还有人吃| 笨拙是什么意思| 过敏期间不能吃什么东西| 榴莲和什么水果相克| 早睡有什么好处| 无痛肠镜和普通肠镜有什么区别| sayno是什么意思| 5到7点是什么时辰| 陆勤合格什么意思| 金钱草什么样| 2002是什么年| 长痘痘吃什么水果好| 7月份有什么节日| 扁平化管理是什么意思| 亟须什么意思| ha什么意思| 聚酯纤维是什么面料| 肚脐是什么穴位| 438是什么意思| 宫内感染有什么症状| 大手牵小手是什么菜| 生化妊娠什么意思| 单侧耳鸣是什么原因引起的| 肿瘤是什么样子的| 进击的巨人真相是什么| 复方氯化钠注射作用是什么| 哪吒属什么生肖| 怀孕两周有什么症状| 绿松石有什么功效| 人肉搜索是什么意思| 放是什么偏旁| 3475是什么罩杯| 海是什么生肖| 人最重要的是什么| 草单斤是什么字| 相顾无言是什么意思| 日本的国宝是什么| 焦虑症应该挂什么科室| 什么减肥药最安全| 格格是什么意思| 洗衣机脱水是什么意思| 那英姓什么| 类风湿有什么特效药| 莫名其妙的名是什么意思| 钼靶是什么检查| 塞飞洛是什么档次的包| 胰腺吃什么药| 罗贯中是什么朝代的| 为什么手术前要禁食禁水| 2t是什么意思| 神经外科治疗什么病| 手脚冰冷是什么原因| 大生化挂什么科| 打玻尿酸有什么副作用吗| 斐乐什么档次| 为什么会血热| ferragamo是什么牌子| 影字五行属什么| 苓是什么意思| 孩子说话晚是什么原因| 什么叫阳痿| 甲亢是什么原因导致的| 无患子为什么叫鬼见愁| 百度Jump to content

苹果一周要闻:千万不要找第三方修iPhone7上home键

From Wikipedia, the free encyclopedia
(Redirected from Heuristic algorithm)
百度 蓝色牛仔裤配什么颜色短袖

In mathematical optimization and computer science, heuristic (from Greek ε?ρ?σκω eurísko "I find, discover"[1]) is a technique designed for problem solving more quickly when classic methods are too slow for finding an exact or approximate solution, or when classic methods fail to find any exact solution in a search space. This is achieved by trading optimality, completeness, accuracy, or precision for speed. In a way, it can be considered a shortcut.

A heuristic function, also simply called a heuristic, is a function that ranks alternatives in search algorithms at each branching step based on available information to decide which branch to follow. For example, it may approximate the exact solution.[2]

Definition and motivation

[edit]

The objective of a heuristic is to produce a solution in a reasonable time frame that is good enough for solving the problem at hand. This solution may not be the best of all the solutions to this problem, or it may simply approximate the exact solution. But it is still valuable because finding it does not require a prohibitively long time.

Heuristics may produce results by themselves, or they may be used in conjunction with optimization algorithms to improve their efficiency (e.g., they may be used to generate good seed values).

Results about NP-hardness in theoretical computer science make heuristics the only viable option for a variety of complex optimization problems that need to be routinely solved in real-world applications.

Heuristics underlie the whole field of Artificial Intelligence and the computer simulation of thinking, as they may be used in situations where there are no known algorithms.[3]

Examples

[edit]

Simpler problem

[edit]

One way of achieving the computational performance gain expected of a heuristic consists of solving a simpler problem whose solution is also a solution to the initial problem.

Travelling salesman problem

[edit]

An example of approximation is described by Jon Bentley for solving the travelling salesman problem (TSP):

  • "Given a list of cities and the distances between each pair of cities, what is the shortest possible route that visits each city exactly once and returns to the origin city?"

so as to select the order to draw using a pen plotter. TSP is known to be NP-hard so an optimal solution for even a moderate size problem is difficult to solve. Instead, the greedy algorithm can be used to give a good but not optimal solution (it is an approximation to the optimal answer) in a reasonably short amount of time. The greedy algorithm heuristic says to pick whatever is currently the best next step regardless of whether that prevents (or even makes impossible) good steps later. It is a heuristic in the sense that practice indicates it is a good enough solution, while theory indicates that there are better solutions (and even indicates how much better, in some cases).[4]

[edit]

Another example of heuristic making an algorithm faster occurs in certain search problems. Initially, the heuristic tries every possibility at each step, like the full-space search algorithm. But it can stop the search at any time if the current possibility is already worse than the best solution already found. In such search problems, a heuristic can be used to try good choices first so that bad paths can be eliminated early (see alpha–beta pruning). In the case of best-first search algorithms, such as A* search, the heuristic improves the algorithm's convergence while maintaining its correctness as long as the heuristic is admissible.

Newell and Simon: heuristic search hypothesis

[edit]

In their Turing Award acceptance speech, Allen Newell and Herbert A. Simon discuss the heuristic search hypothesis: a physical symbol system will repeatedly generate and modify known symbol structures until the created structure matches the solution structure. Each following step depends upon the step before it, thus the heuristic search learns what avenues to pursue and which ones to disregard by measuring how close the current step is to the solution. Therefore, some possibilities will never be generated as they are measured to be less likely to complete the solution.

A heuristic method can accomplish its task by using search trees. However, instead of generating all possible solution branches, a heuristic selects branches more likely to produce outcomes than other branches. It is selective at each decision point, picking branches that are more likely to produce solutions.[5]

Antivirus software

[edit]

Antivirus software often uses heuristic rules for detecting viruses and other forms of malware. Heuristic scanning looks for code and/or behavioral patterns common to a class or family of viruses, with different sets of rules for different viruses. If a file or executing process is found to contain matching code patterns and/or to be performing that set of activities, then the scanner infers that the file is infected. The most advanced part of behavior-based heuristic scanning is that it can work against highly randomized self-modifying/mutating (polymorphic) viruses that cannot be easily detected by simpler string scanning methods. Heuristic scanning has the potential to detect future viruses without requiring the virus to be first detected somewhere else, submitted to the virus scanner developer, analyzed, and a detection update for the scanner provided to the scanner's users.

Pitfalls

[edit]

Some heuristics have a strong underlying theory; they are either derived in a top-down manner from the theory or are arrived at based on either experimental or real world data. Others are just rules of thumb based on real-world observation or experience without even a glimpse of theory. The latter are exposed to a larger number of pitfalls.

When a heuristic is reused in various contexts because it has been seen to "work" in one context, without having been mathematically proven to meet a given set of requirements, it is possible that the current data set does not necessarily represent future data sets (see: overfitting) and that purported "solutions" turn out to be akin to noise.

Statistical analysis can be conducted when employing heuristics to estimate the probability of incorrect outcomes. To use a heuristic for solving a search problem or a knapsack problem, it is necessary to check that the heuristic is admissible. Given a heuristic function meant to approximate the true optimal distance to the goal node in a directed graph containing total nodes or vertices labeled , "admissible" means roughly that the heuristic underestimates the cost to the goal or formally that for all where .

If a heuristic is not admissible, it may never find the goal, either by ending up in a dead end of graph or by skipping back and forth between two nodes and where .

Etymology

[edit]

The word "heuristic" came into usage in the early 19th century. It is formed irregularly from the Greek word heuriskein, meaning "to find".[6]

See also

[edit]
  • Constructive heuristic
  • Metaheuristic: Methods for controlling and tuning basic heuristic algorithms, usually with usage of memory and learning.
  • Matheuristics: Optimization algorithms made by the interoperation of metaheuristics and mathematical programming (MP) techniques.
  • Reactive search optimization: Methods using online machine learning principles for self-tuning of heuristics.

References

[edit]
  1. ^ "Heuristic". 7 April 2025.
  2. ^ Pearl, Judea (1984). Heuristics: intelligent search strategies for computer problem solving. United States: Addison-Wesley Pub. Co., Inc., Reading, MA. p. 3. OSTI 5127296.
  3. ^ Apter, Michael J. (1970). The Computer Simulation of Behaviour. London: Hutchinson & Co. p. 83. ISBN 9781351021005.
  4. ^ Jon Louis Bentley (1982). Writing Efficient Programs. Prentice Hall. p. 11.
  5. ^ Allen Newell and Herbert A. Simon (1976). "Computer Science as Empirical Inquiry: Symbols and Search" (PDF). Comm. ACM. 19 (3): 113–126. doi:10.1145/360018.360022. S2CID 5581562.
  6. ^ "Definition of heuristic in English". Oxford University Press. Archived from the original on 23 October 2016. Retrieved 22 October 2016.
身上长扁平疣是什么原因造成的 guou是什么牌子的手表 伏羲女娲是什么关系 寻常疣是什么样子图片 笑靥如花什么意思
不来月经是什么原因 头上两个旋代表什么 兼得是什么意思 什么是拘役 缺碘有什么症状
生长因子是什么 烧伤病人吃什么恢复快 随访是什么意思 烧火棍是什么意思 还人是什么意思
阿耨多罗三藐三菩提是什么意思 尚可什么意思 唇珠在面相中代表什么 声泪俱下是什么意思 什么土方治咳嗽最有效
这次台风叫什么hcv8jop8ns6r.cn 夏季喝什么茶hcv9jop2ns8r.cn 一岁半打什么疫苗dayuxmw.com 敏感水体是什么意思hcv8jop5ns2r.cn 八月十二是什么星座hcv9jop4ns2r.cn
口水臭吃什么药hcv7jop6ns5r.cn 燃脂是什么意思hlguo.com 龙是什么意思hcv9jop4ns2r.cn 偏光太阳镜是什么意思hcv8jop2ns4r.cn 脾是什么fenrenren.com
澄面是什么面粉hcv8jop8ns3r.cn 脊椎痛什么原因hcv8jop4ns3r.cn 什么回大什么cl108k.com 跌水是什么意思hcv8jop2ns6r.cn 心灵手巧什么意思hcv8jop4ns1r.cn
尿液检查能查出什么病hcv8jop5ns0r.cn 嘴子是什么意思hcv9jop7ns5r.cn 药流前需要做什么检查hcv8jop6ns6r.cn 狗吃什么药会立马就死hcv9jop6ns3r.cn 造影是什么手术hcv8jop2ns4r.cn
百度