MiffyLiye

MiffyLiye

To cure sometimes, to relieve often, to comfort always.
🏢  Cook Ding Information Technology / Architect
V2EX 第 45564 号会员,加入于 2013-09-17 13:37:36 +08:00
根据 MiffyLiye 的设置,主题列表只有在你登录之后才可查看
二手交易 相关的信息,包括已关闭的交易,不会被隐藏
MiffyLiye 最近回复了
2021-03-23 23:36:40 +08:00
回复了 exc 创建的主题 问与答 为什么合作可以共赢,而这个世界人与人之间却是竞争关系?
> Competition at larger scales naturally breeds cooperation at smaller scales because in order for a group to effectively compete with another group (large-scale competition), there must be cooperation within the group.

> Cooperation can also breed competition since sometimes the best way for the group to achieve its shared goals is to facilitate some healthy competition among its subgroups.
1L 已经指出来了两个大方向

补充一下要减少计算量,除了改进算法之外,还有其他选项

1. 降低资源消耗
改进算法
降低对精确度的要求:用精确度不高的算法(例如 Monte Carlo method )
降低对实时性的要求:用任务队列异步处理
降低其他要求:需要综合很多因素权衡利弊

2. 提高资源供给
换更强的 CPU
加 CPU
2020-05-14 17:46:55 +08:00
回复了 black11black 创建的主题 Java 一个旅行家问题算法题的变种题,各位算法大佬来提供个思路
NP 问题除了暴力穷举,还可以用 backtracking 或者 branch and bound

曾经写过 1 个旅行家的,用的 branch and bound,几十个岛屿的复杂地图在单机上算起来就很慢了

2 个旅行家,1000 个岛屿,考虑上 distributed branch and bound 吧
2020-01-06 08:54:41 +08:00
回复了 sumarker 创建的主题 程序员 大家公司的架构师工作时候都是什么样子的?
@sumarker 2012 年的第 3 版,因为是笔记所以和原文有些不一样。
2020-01-05 22:26:46 +08:00
回复了 sumarker 创建的主题 程序员 大家公司的架构师工作时候都是什么样子的?
The concepts an architect works with all day are likely to be modules, components, connectors, stakeholders, evaluation, analysis, documentation, views, modeling, quality attributes, business goals, and technology roadmaps.

The concepts an implementer works with all day are likely to be objects, methods, algorithms, data structures, variables, debugging, statements, code comments, compilers, generics, operator overloading, pointers, and build scripts.
2019-11-17 17:55:57 +08:00
回复了 zhshch 创建的主题 程序员 服务器自动拉取 Git 一般是怎么做的?
@zhshch CI 改成 CD,让 CD 闯进生产服务器,是不是听起来就好多了🤔
2019-11-16 19:49:18 +08:00
回复了 Simle100 创建的主题 Java 方式 1 和方式 2 的却别到底在哪里?
API 名称和文档与具体行为匹配就好,不要给调用方错误的预期,剩下的如何处理就是调用方的责任了
此外不要把异常用成正常业务的流程控制手段

如果调用方的预期是总能得到正确的结果,则在无法满足外部期望的时候,应该 throw,尽早暴露问题并修复
如果调用方的预期是有些情况无法计算,则调用方应该用 Tester-Doer Pattern,或者调用返回 Option.Some / Option.None 的 API,无法计算作为正常业务场景,由调用方用 if else 去控制流程

至于性能,只要不是运行时频繁抛出来,几乎不可能成为性能瓶颈
如果你不是天才,就老老实实上 profiler 找瓶颈有针对性地去调,先学会走,再去学跑
2019-09-25 12:56:32 +08:00
回复了 SoarKyle 创建的主题 程序员 Java 做强联网即时对战的手游服务器的技术可行性?
服务端有 Electronic Arts 开源的 Orbit ( Java )
对标 Microsoft 的 Orleans ( C#)
2019-09-11 22:19:17 +08:00
回复了 JmingZhang 创建的主题 职场话题 领导一直要求工作量化怎么搞?
度量 output,还是 outcome?
用来发现问题解决问题提高效率,还是只作为 KPI ?
2019-09-10 21:56:01 +08:00
回复了 codeguru 创建的主题 职场话题 阿里 p7p8 水平很菜啊,公司几个来面试的感受
如果面试通过率很低,招 senior 结果进面试的只能当 junior,不妨在吐槽外部人员之后找找自身的原因

职位描述、简历筛选有没有问题,实际需要的能力和职位描述里写出来的能力是否一致,适合的人能否被吸引过来
面试过程有没有问题,interviewer 考察的重点和职位描述里列的是否一致

如果当局者迷的话,可以问问 interviewee 面试之后有什么感想
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2888 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 14:18 · PVG 22:18 · LAX 07:18 · JFK 10:18
Developed with CodeLauncher
♥ Do have faith in what you're doing.