“问题”是什么?_问题一般包含上下文,目标和障碍3个基本成分-程序员宅基地

技术标签: features  算法  一般方法论  问题、算法和数据结构  less  交通  parameters  forms  

“问题”是什么

刘建文略译( http://www.semi-translate.com/blog

KEY: 问题 科学哲学 方法论

“问题”是什么?

“问题”是什么?“问题”不是一个面包,不是一辆汽车,但它确实的存在,有它自己的性质或存在的客观性。我今天把它揪出来研究一下。 先看看《现代汉语词典》的定义:

问题

  1. ①要求回答或解释的题目:这次考试一共有五个~│我想答复一下这一类的~。
  2. ②须要研究讨论并加以解决的矛盾、疑难:思想~│这种药治感冒很解决~。
  3. ③关键;重要之点:重要的~在善于学习。
  4. ④事故或麻烦:那部车床又出~了。

从这个定义可以看出,“问题”和科学、方法、理论等概念一样的“普通”,是一个很高抽象级别范畴概念,已经深入到我们话语系统、思维结构之中了。这也说明了“问题”与其它的高抽象级别范畴概念一样具有极大的思考价值。我们再看看维基百科的定义:

A problem is an obstacle障碍 which makes it difficult to achieve a desired goal, objective or purpose. It refers to a situation, condition, or issue that is yet unresolved. In a broad sense, a problem exists when an individual becomes aware of a significant difference between what actually is and what is desired.

“问题”是使实现预定的目标、目的或宗旨进入困境的障碍。它涉及了一个没有解决的状况、条件或事件。在更广泛的意思说,当个人开始意识到“渴望的”与“实际的”有足够的差别时,问题产生了。

从这个定义我们了解到,“问题”的确不是像西瓜那样是一个具体存在的直觉上的“东西”,它和“计算”一样是一个抽象的概念;问题与[一个过程性的概念]——“实现一个目标”有关系,阻碍关系。问题阻碍了目标的实现。“问题”与“计算”有不同之处,问题是一个状况,一个相对静止的抽象概念;而“计算”和“实现一个目标”都是一个过程性的带时间性的抽象概念。看看一些常见的问题:

  • “如何能追到那女孩?”
  • “我肚子饿了,有什么东西我吃?”
  • 我的生日是哪一天?
  • 炒青菜应该放多少盐?
  • 1515*34-443=?
  • 怎么样设计交通信号灯才能使用交通流量最大?

一些定义

定义一

问题很难有一个确定的,无异议的定义,但是,一般来说都问题包含有以下三个基本成分:

  • 上下文: 和问题相关的场景,指一组已经是明确已知的,关于问题的条件的描述。
  • 目标: 指关于构成问题的结论的明确的描述。
  • 障碍: 指问题的正确解决方法不是显而易见的,必须通过一定的思维活动,才能找到答案。

一般而言,问题是由于某些导致不能达到目的或者实现目标的认识障碍。它是指不期待的现状没有被解决或者事态出现意外。

定义二(摘自《数学方法论与解题研究》)

一般说来,问题是给定的信息和目标之间有某些障碍需要加以克服的情景。所有问题都会有三个基本成分:

  • 给定(Givens),即一组给予的信息;
  • 目标(Goals),问题要求的或结尾的状态,即关于构成问题的结论描述;
  • 障碍(Obstacles),思维者无法立即找到正确答案,必须通过一定的方式来改变给定状态,逐步达到目标状态。

定义三《数学的发现--对解题的理解、研究的讲授 第一卷》

“有问题”指的是:有意识地寻求某一适当的行动,以便达到一个被清楚地意识到但不能立即达到的目的。解决问题指的是寻找这种活动。

“求解”问题的目的是要求一个确定的对象--问题的未知量,要求的是满足这种问题的条件的未知量,这个条件把未知量与问题的已知量联系起来。未知量可能属于任一可能想像的种类。一个表述清楚的问题必须规定其未知量的种类(集合),也必须规定未知量应该满足的条件。在由问题规定的对象集合(未知量必定属于该集合)中,有满足条件的那些对象组成的子集,并且任一个属于这个子集的对象被称为一个解。

我们把未知量、条件和已知量称为“求解”问题的主要部分。

我们探索的目标,可以是任何类型的未知量,或者是发现任何种类问题的真理:我们的问题可能是理论的或实际的,重要的或无足轻重的。为了解决我们的问题,我们必须制定一个深思熟虑的、有条有理的行动计划(逻辑推理、数学运算或者是具体工作),以从我们已有的东西得出我们缺少的东西--从前提得出结论、从已知量得出未知量等。

计算机处理的是什么样的“问题”?

先一个例子,摘自<<Algorithms and Data Structures: The Science of Computing>>

1.1.1 Problems

Some people (including one of the authors) chill bottles or cans of soft drinks or fruit juice by putting them in a freezer for a short while before drinking them. This is a nice way to get an extra-cold drink, but it risks disaster: a drink left too long in the freezer begins to freeze, at which point it starts to expand, ultimately bursting its container and spilling whatever liquid isn't already frozen all over the freezer. People who chill drinks in freezers may thus be interested in knowing the longest time that they can safely leave a drink in the freezer, in other words, the time that gives them the coldest drink with no mess to clean up afterwards. But since neither drinks nor freezers come with the longest safe chilling times stamped on them by the manufacturer, people face the problem of finding those times for themselves. This problem makes an excellent example of the kinds of problems and problem solving that exist in computer science. In particular, it shares two key features with all other problems of interest to computer science.

以上“冰冻饮料”的问题展示了计算机科学关心的问题及其解决方法的一个极好的例子。特别地,这些问题有两个共同的特征:

First, the problem is general enough to appear over and over in slightly different forms, or instances. In particular, different freezers may chill drinks at different speeds, and larger drinks will generally have longer safe chilling times than smaller drinks. Furthermore, there will be some margin of error on chilling times, within which more or less chilling really doesn't matter-for example, chilling a drink for a second more or a second less than planned is unlikely to change it from unacceptably warm to messily frozen. But the exact margin of error varies from one instance of the problem to the next (depending, for example, on how fast the freezer freezes things and how willing the person chilling the drink is to risk freezing it). Different instances of the longest safe chilling time problem are therefore distinguished by how powerful the freezer is, the size of the drink, and what margin of error the drinker will accept. Things that distinguish one problem instance from another are called parameters or inputs to the problem.

第一,这些问题都足够的一般,只需稍作修改(更改其中的某个条件)就可以演化出很多的有类似形式的问题(实例)。比如,“冰冻饮料”的问题里的冰箱(功力)和饮料(体积)都可以不同的,这样也有不同的答案--最长冰冻时间。此外,这个冰冻时间可以有一定的误差,有些问题适量误差是无关紧要的,因问题而定。“冰冻饮料”的问题的实例的不同由冰箱功力、饮料体积和可接受的误差值决定。这些区分问题实例的条件称为参数或问题输入。

Also note that different instances of a problem generally have different answers. For example, the longest safe chilling time for a two-liter bottle in a kitchenette freezer is different from the longest safe chilling time for a half-liter in an commercial deep freeze. It is therefore important to distinguish between an answer to a single instance of a problem and a process that can solve any instance of the problem. It is far more useful to know a process with which to solve a problem whenever it arises than to know the answer to only one instance-as an old proverb puts it, "Give a man a fish and you feed him dinner, but teach him to fish and you feed him for life."

(形式相似的)不同问题实例会有不同的答案,因此,找到一个特定问题实例 的答案和找到解答所有问题实例的过程(也就是解题算法)有很大的差别的。后者具有更大的价值,就像那句古训:授之以鱼不如授之以渔。

The second important feature of any computer science problem is that you can tell whether a potential answer is right or not. For example, if someone tells you that a particular drink can be chilled in a particular freezer for up to 17 minutes, you can easily find out if this is right. Chill the drink for 17 minutes and see if it comes out not quite frozen; then chill a similar container of the same drink for 17 minutes plus the margin of error and see if it starts to freeze. Put another way, a time must meet certain requirements in order to solve a given instance of the problem, and it is possible to say exactly what those requirements are: the drink in question, chilled for that time in the freezer in question, shouldn't quite freeze, whereas the drink in question, chilled for that time plus the margin of error in the freezer in question, would start to freeze. That you need to know what constitutes a correct answer seems like a trivial point, but it bears an important moral nonetheless: before trying to find a process to solve a problem, make sure you understand exactly what answers you will accept.

第二,这些问题的答案必须确定的,不能模棱两可。例如,某人告诉你某台冰箱冰冻一个特定大小的饮料的最长冰冻时间是17分钟。你可以做数次直接测试这个答案是否正确。在这里,这个答案--时间--必须满足一定的前提条件,比如,饮料有多大,饮料不能太冻和冰箱的功力。因此,你必须清楚知道一个正确答案是什么。这看似简单而微不足道,但实际上在问题解决中起着重的角色。当你试图为解决一个问题寻找解决过程(算法)时,必须先明确答案是什么。

Not every problem has these two features. Problems that lack one or the other are generally outside the scope of computer science. For example, consider the problem, "In what year did people first walk on the moon?" This problem lacks the first feature of being likely to appear in many different instances. It is so specific that it only has one instance, and so it's easier to just remember that the answer is "1969" than to find a process for finding that answer. As another example, consider the problem, "Should I pay parking fines that I think are unfair?" This problem lacks the second feature of being able to say exactly what makes an answer right. Different people will have different "right" answers to any instance of this problem, depending on their individual notions of fairness, the relative values they place on obeying the law versus challenging unfair actions, etc.

 

 

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/keminlau/article/details/2310411

智能推荐

从零开始搭建Hadoop_创建一个hadoop项目-程序员宅基地

文章浏览阅读331次。第一部分:准备工作1 安装虚拟机2 安装centos73 安装JDK以上三步是准备工作,至此已经完成一台已安装JDK的主机第二部分:准备3台虚拟机以下所有工作最好都在root权限下操作1 克隆上面已经有一台虚拟机了,现在对master进行克隆,克隆出另外2台子机;1.1 进行克隆21.2 下一步1.3 下一步1.4 下一步1.5 根据子机需要,命名和安装路径1.6 ..._创建一个hadoop项目

心脏滴血漏洞HeartBleed CVE-2014-0160深入代码层面的分析_heartbleed代码分析-程序员宅基地

文章浏览阅读1.7k次。心脏滴血漏洞HeartBleed CVE-2014-0160 是由heartbeat功能引入的,本文从深入码层面的分析该漏洞产生的原因_heartbleed代码分析

java读取ofd文档内容_ofd电子文档内容分析工具(分析文档、签章和证书)-程序员宅基地

文章浏览阅读1.4k次。前言ofd是国家文档标准,其对标的文档格式是pdf。ofd文档是容器格式文件,ofd其实就是压缩包。将ofd文件后缀改为.zip,解压后可看到文件包含的内容。ofd文件分析工具下载:点我下载。ofd文件解压后,可以看到如下内容: 对于xml文件,可以用文本工具查看。但是对于印章文件(Seal.esl)、签名文件(SignedValue.dat)就无法查看其内容了。本人开发一款ofd内容查看器,..._signedvalue.dat

基于FPGA的数据采集系统(一)_基于fpga的信息采集-程序员宅基地

文章浏览阅读1.8w次,点赞29次,收藏313次。整体系统设计本设计主要是对ADC和DAC的使用,主要实现功能流程为:首先通过串口向FPGA发送控制信号,控制DAC芯片tlv5618进行DA装换,转换的数据存在ROM中,转换开始时读取ROM中数据进行读取转换。其次用按键控制adc128s052进行模数转换100次,模数转换数据存储到FIFO中,再从FIFO中读取数据通过串口输出显示在pc上。其整体系统框图如下:图1:FPGA数据采集系统框图从图中可以看出,该系统主要包括9个模块:串口接收模块、按键消抖模块、按键控制模块、ROM模块、D.._基于fpga的信息采集

微服务 spring cloud zuul com.netflix.zuul.exception.ZuulException GENERAL-程序员宅基地

文章浏览阅读2.5w次。1.背景错误信息:-- [http-nio-9904-exec-5] o.s.c.n.z.filters.post.SendErrorFilter : Error during filteringcom.netflix.zuul.exception.ZuulException: Forwarding error at org.springframework.cloud..._com.netflix.zuul.exception.zuulexception

邻接矩阵-建立图-程序员宅基地

文章浏览阅读358次。1.介绍图的相关概念  图是由顶点的有穷非空集和一个描述顶点之间关系-边(或者弧)的集合组成。通常,图中的数据元素被称为顶点,顶点间的关系用边表示,图通常用字母G表示,图的顶点通常用字母V表示,所以图可以定义为:  G=(V,E)其中,V(G)是图中顶点的有穷非空集合,E(G)是V(G)中顶点的边的有穷集合1.1 无向图:图中任意两个顶点构成的边是没有方向的1.2 有向图:图中..._给定一个邻接矩阵未必能够造出一个图

随便推点

MDT2012部署系列之11 WDS安装与配置-程序员宅基地

文章浏览阅读321次。(十二)、WDS服务器安装通过前面的测试我们会发现,每次安装的时候需要加域光盘映像,这是一个比较麻烦的事情,试想一个上万个的公司,你天天带着一个光盘与光驱去给别人装系统,这将是一个多么痛苦的事情啊,有什么方法可以解决这个问题了?答案是肯定的,下面我们就来简单说一下。WDS服务器,它是Windows自带的一个免费的基于系统本身角色的一个功能,它主要提供一种简单、安全的通过网络快速、远程将Window..._doc server2012上通过wds+mdt无人值守部署win11系统.doc

python--xlrd/xlwt/xlutils_xlutils模块可以读xlsx吗-程序员宅基地

文章浏览阅读219次。python–xlrd/xlwt/xlutilsxlrd只能读取,不能改,支持 xlsx和xls 格式xlwt只能改,不能读xlwt只能保存为.xls格式xlutils能将xlrd.Book转为xlwt.Workbook,从而得以在现有xls的基础上修改数据,并创建一个新的xls,实现修改xlrd打开文件import xlrdexcel=xlrd.open_workbook('E:/test.xlsx') 返回值为xlrd.book.Book对象,不能修改获取sheett_xlutils模块可以读xlsx吗

关于新版本selenium定位元素报错:‘WebDriver‘ object has no attribute ‘find_element_by_id‘等问题_unresolved attribute reference 'find_element_by_id-程序员宅基地

文章浏览阅读8.2w次,点赞267次,收藏656次。运行Selenium出现'WebDriver' object has no attribute 'find_element_by_id'或AttributeError: 'WebDriver' object has no attribute 'find_element_by_xpath'等定位元素代码错误,是因为selenium更新到了新的版本,以前的一些语法经过改动。..............._unresolved attribute reference 'find_element_by_id' for class 'webdriver

DOM对象转换成jQuery对象转换与子页面获取父页面DOM对象-程序员宅基地

文章浏览阅读198次。一:模态窗口//父页面JSwindow.showModalDialog(ifrmehref, window, 'dialogWidth:550px;dialogHeight:150px;help:no;resizable:no;status:no');//子页面获取父页面DOM对象//window.showModalDialog的DOM对象var v=parentWin..._jquery获取父window下的dom对象

什么是算法?-程序员宅基地

文章浏览阅读1.7w次,点赞15次,收藏129次。算法(algorithm)是解决一系列问题的清晰指令,也就是,能对一定规范的输入,在有限的时间内获得所要求的输出。 简单来说,算法就是解决一个问题的具体方法和步骤。算法是程序的灵 魂。二、算法的特征1.可行性 算法中执行的任何计算步骤都可以分解为基本可执行的操作步,即每个计算步都可以在有限时间里完成(也称之为有效性) 算法的每一步都要有确切的意义,不能有二义性。例如“增加x的值”,并没有说增加多少,计算机就无法执行明确的运算。 _算法

【网络安全】网络安全的标准和规范_网络安全标准规范-程序员宅基地

文章浏览阅读1.5k次,点赞18次,收藏26次。网络安全的标准和规范是网络安全领域的重要组成部分。它们为网络安全提供了技术依据,规定了网络安全的技术要求和操作方式,帮助我们构建安全的网络环境。下面,我们将详细介绍一些主要的网络安全标准和规范,以及它们在实际操作中的应用。_网络安全标准规范

推荐文章

热门文章

相关标签