“问题”是什么?

“问题”是什么

刘建文略译( 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.

<think> 首先,用户的问题是:“br0是什么?”这是一个关于网络接口的问题,我需要用中文回答。 回顾之前的对话: - 第一次回应解释了“桥”在计算机网络中的含义。 - 第二次回应从QCA的WiFi方案角度解释了“无线接口没有加桥”。 - 现在,用户直接问“br0是什么?”。 在之前的回答中,我提到了“br0”作为桥接设备的一个例子,比如在Linux系统中。我需要确保回答是基于这个上下文。 关键规则: - 必须用中文回答问题。 - 回答完毕后,必须提出3-5个§§相关问题§§。 - §§相关问题§§必须在回答末尾,第一行必须完整输出"§§相关问题§§",禁止换行分散。 - 问题数量:3-5个。 - 示例格式:在回答后,直接列出相关问题,用数字点号。 内容结构: 1. **回答核心问题**:解释“br0”是什么。 - br0是一个常见的Linux网络接口名称,代表桥接设备。 - 它是用于桥接多个网络接口的虚拟设备,如eth0和wlan0。 - 在QCA或其他方案中,它允许无线和有线设备在同一广播域通信。 - 解释其作用:共享IP地址、简化管理、避免网络分割。 - 保持简洁,用中文。 2. **提出相关问题**:基于问题和我的回答,生成3-5个相关问题。 - 问题应相关,可以从br0扩展到更广的语境。 - 数量:至少3个,最多5个。 - 格式:第一行是"§§相关问题§§",然后换行(但注意规则:禁止换行分散,意思是不要在输出中分散换行,但列出问题时必须有序)。规则说:“禁止换行分散”,但示例中是换行后列出问题列表。我认为需要换行后紧跟数字列表。 - 参考示例:在代码示例后,输出"§§相关问题§§",然后换行列出1. ... 2. ... 3. ... 生成相关问题: - 围绕br0的定义、配置、常见问题。 - 可能的questions: 1. 如何在Linux系统中创建和配置br0桥接设备? 2. br0与路由器或其他网络设备有何区别? 3. 如果br0配置错误,会导致哪些网络问题? 4. 在OpenWrt系统中,br0的默认设置是什么? 5. br0支持哪些高级功能? 我需要3-5个,所以选4个。 最终输出结构: - 回答部分:用中文解释br0。 - 然后,新行:"§§相关问题§§" - 接着,数字列表的问题。 确保所有内容符合规则:中文回答,末尾有相关问题。 草拟回答: - br0是Linux系统中的一种网络接口类型,代表桥接设备(Bridge)。它是一个虚拟接口,用于连接多个物理或虚拟网络接口(如eth0、wlan0),使它们共享同一个广播域和IP地址配置。在桥接模式下,br0透明地转发数据帧,无需路由,从而简化网络管理并确保无线和有线设备无缝通信。例如,在路由器设置中,br0通常绑定LAN接口,允许所有设备在同一个子网内交互。 相关问题: 1. 如何在Linux命令行中使用ip或brctl工具管理br0桥接? 2. br0桥接设备与传统交换机有何异同? 3. 在虚拟化环境中(如KVM),如何使用br0实现虚拟机网络互联? 4. 常见配置错误导致br0失效时,如何排查和修复? 这些问题基于br0的定义扩展。 </think> 在Linux网络配置中,**br0**是一个常见的虚拟桥接接口(Bridge interface),用于连接多个物理或虚拟网络接口(如`eth0`、`wlan0`),形成一个共享广播域的局域网段。具体来说: - **作用**:它将不同的网络接口(如无线接口和有线接口)绑定在一起,使它们处于同一子网内。数据包在数据链路层(OSI第2层)被透明转发,无需路由器干预,从而简化网络管理并提升效率。例如,在路由器或OpenWrt系统中,br0通常作为LAN端的核心桥接设备,允许无线客户端和有线设备直接通信,共享同一个DHCP服务器和网关。 - **命名规则**:名称中的“br”代表“bridge”,数字“0”表示第一个桥接设备,后续可添加如br1、br2等。 - **常见应用**:在QCA Wi-Fi方案或Linux系统中,br0通过工具如`brctl`或`ip link`配置,命令如`brctl addbr br0`创建桥接,`brctl addif br0 wlan0`添加接口。如果未正确添加接口(如无线接口未加入br0),会导致网络隔离,表现为设备能关联但无法上网。 - **优势**:避免IP地址分段、减少延迟,适用于家庭路由、虚拟化环境等。
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值