你在“现实世界”使用大O的复杂性的评价? [英] Do you use Big-O complexity evaluation in the 'real world'?

查看:116
本文介绍了你在“现实世界”使用大O的复杂性的评价?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

近日在接受采访时有人问我有关大澳的各种算法,想出了在技术问题过程中的几个问题。我不认为我的表现非常好这个......在十多年以来我所走的程序设计课程,我们被要求计算大O的算法,我还没有有关于任何事物的'大O'一议我曾在或设计。我一直在参与与其他团队成员,并与我共事过有关的复杂性和code速度建筑师多次讨论,但我从来就不是一个团队,实际使用大O计算,一个真正的项目的一部分。讨论总是有没有更好的或者更有效的方式做出来的数据,这给我们的理解?从不什么是该算法的复杂性?

Recently in an interview I was asked several questions related to the Big-O of various algorithms that came up in the course of the technical questions. I don't think I did very well on this... In the ten years since I took programming courses where we were asked to calculate the Big-O of algorithms I have not have one discussion about the 'Big-O' of anything I have worked on or designed. I have been involved in many discussions with other team members and with the architects I have worked with about the complexity and speed of code, but I have never been part of a team that actually used Big-O calculations on a real project. The discussions are always "is there a better or more efficient way to do this given our understanding of out data?" Never "what is the complexity of this algorithm"?

我在想,如果人们实际上得约在现实世界中的大O他们的code讨论?

I was wondering if people actually have discussions about the "Big-O" of their code in the real word?

推荐答案

这与其说是使用它,它更是你理解的含义。

It's not so much using it, it's more that you understand the implications.

有程序员谁不知道使用O的后果(N ^ 2)排序算法。

There are programmers who do not realise the consequence of using an O(N^2) sorting algorithm.

我怀疑很多除了那些在学术界工作将使用大O的复杂性分析愤怒的一天到一天。

I doubt many apart from those working in academia would use Big-O Complexity Analysis in anger day-to-day.

这篇关于你在“现实世界”使用大O的复杂性的评价?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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