工大后院

 找回密码
 加入后院

扫一扫,访问微社区

QQ登录

只需一步,快速开始

搜索
楼主: 我想飞

腾讯2面试题

[复制链接]
发表于 2008-12-22 11:16 | 显示全部楼层
好像挺难~
回复

使用道具 举报

发表于 2008-12-25 10:53 | 显示全部楼层
第二个能不能用二叉排序树,也是n*logn*字符串匹配时间,不知道5分钟内能不能完成
菜鸟飘过
回复

使用道具 举报

发表于 2009-1-4 12:21 | 显示全部楼层
QQ wants to do search engine?
1. I only know 粗鲁法

2. For approximate solution, use streaming algorithm like sticky sampling or lossy counting, 1 pass and O(logn) (n=10,000,000 here) space consumption. Use 128bit SHA1 hashing function set (using a hash function set to avoid collision) is the other solution I can come up with, still 1 pass, defficiency is using 32bit * 10million ~ 300MB space for maintaining counter space, not really bad for memory in nowadays.

For exact solution, I heard (not 100% sure) google using 'tries' (this is tree-like data structure) to index huge text record.  

3. Typical application for dynamic programming.

These three are a little bit too difficult for undergraduate students. I do not think the testers can come up with a good answer without peeping the solutions on a research paper.

[ 本帖最后由 小飞侠 于 2009-1-4 12:37 编辑 ]
回复

使用道具 举报

发表于 2009-1-9 19:26 | 显示全部楼层
太难了
回复

使用道具 举报

发表于 2009-2-13 20:44 | 显示全部楼层
分布式算法+自动机
logn
回复

使用道具 举报

发表于 2009-3-5 00:04 | 显示全部楼层
真够变态的!!
回复

使用道具 举报

发表于 2009-3-25 22:05 | 显示全部楼层
不懂...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 加入后院

本版积分规则

QQ|Archiver|手机版|小黑屋|广告业务Q|工大后院 ( 粤ICP备10013660号 )

GMT+8, 2025-5-13 05:03

Powered by Discuz! X3.5

Copyright © 2001-2024 Tencent Cloud.

快速回复 返回顶部 返回列表