编程中的谓语逻辑? [英] Predictional Logic in Programming?

查看:195
本文介绍了编程中的谓语逻辑?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我当时在想,在不久的将来,很多人会认为我们将不再那么依赖物理输入(即键盘),因为读取脑电波的技术(在某种程度上已经存在)将变得可用. Kinda吓到我了……无论如何,我在做白日梦的时候想到了一个想法:如果程序员可以在其代码中实现逻辑以准确地预测用户的意图,然后在不需要的情况下执行预期的操作,该怎么办?人与人之间的互动.我没有在寻找任何具体的东西,我只是对任何人的想法感到好奇.

I was thinking about how in the probably distant future many people think that we wont rely on physical input (i.e. keyboard) as much because the technology that reads brain waves (which already exists to some extent) will be available. Kinda scares me....anyway, I while I was daydreaming about this, the idea came to me that: what if a programmer could implement logic in their code to accurately predict the users intentions and then carry out the intended operation with no need for human interaction. I am not looking for anything specific, I'm just a little curious as to what anyone's thoughts are.

推荐答案

当前通过统计技术完成的许多预测"逻辑.

Many of the "predictive" logic which is done currently is through statistical techniques.

例如,在某些应用程序中,经常使用的菜单项可以突出显示,而较少使用的功能将被隐藏,直到用户明确要求查看所有可用功能为止.

For example, in some applications, frequently used menu items can be prominently displayed while less-used features will be hidden until the user explicitly asks to view all available features.

但是,这并不意味着他们可以读懂您的思想.

However, this does not mean that they can read your mind.

为了使统计模型起作用,他们需要进行某种培训.这也是有效的,因为我们倾向于以模式执行操作.例如,如果您在过去10天中进行了10天的锻炼,那么很有可能早上醒来,刷牙并明天喝咖啡.

In order for statistical models to work, they need to have some kind of training period. This also works because we tend to perform actions in patterns. For example, the chances that you'll wake up in the morning, brush your teeth and have coffee tomorrow is going to be very likely if you've performed that for 10 days out of the past 10 days.

以下是一些有趣的主题:

Here's some topics which may be of interest:

  • Viterbi algorithm
  • Hidden Markov model

将来会不会有办法预测将来的想法?可能吧.但是会有一些困难,因为人类并不总是可以预测的.这就是为什么不需要太多思考的重复性任务可以由机器人自动执行,而需要认知性思想的任务(例如编程)不能被机器代替的原因.

Would there be ways in the future to predict ones' thoughts in the future? Possibly. But there is going to be some difficulty because humans aren't always predictable. That's why repetitive tasks that don't require much thought can be automated by robots, while tasks which require cognitive thought such as programming can't be replaced by machines.

这引起了另一种想法-如果有一个程序可以准确地预测程序员想写什么呢?那时需要程序员吗?此外,这是否意味着程序实际上能够思考?

That brings up another thought -- what if there was a program which could accurately predict what a programmer wanted to write? Would there then be a need for programmers? Furthermore, wouldn't that mean that a program was actually able to think?

这篇关于编程中的谓语逻辑?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆