avatar
ARM 64b ARMv8 终于出来了# Hardware - 计算机硬件
r*o
1
非递归求二叉树的高度,可以用按层次遍历的方法,层数就是高度。
还有其他方法可以非递归求二叉树高度吗?
avatar
s*v
3
面向服务器/cloud computing市场,这个是Intel dominated而且margin奇高的市场,
Intel在 计划用3D进攻Mobile,ARM也在反攻Intel, 好玩。
avatar
f*e
4
节点加一个data field: depth

【在 r****o 的大作中提到】
: 非递归求二叉树的高度,可以用按层次遍历的方法,层数就是高度。
: 还有其他方法可以非递归求二叉树高度吗?

avatar
r*e
6
最早要2014年才出货,有点慢啊

【在 s******v 的大作中提到】
: 面向服务器/cloud computing市场,这个是Intel dominated而且margin奇高的市场,
: Intel在 计划用3D进攻Mobile,ARM也在反攻Intel, 好玩。

avatar
r*o
7
然后pre-order遍历?
如果不改动节点数据结构的话,有什么方法可行吗?

【在 f*******e 的大作中提到】
: 节点加一个data field: depth
avatar
a*e
8
3D has nothing to do with mobile

【在 s******v 的大作中提到】
: 面向服务器/cloud computing市场,这个是Intel dominated而且margin奇高的市场,
: Intel在 计划用3D进攻Mobile,ARM也在反攻Intel, 好玩。

avatar
d*a
9
这应该和如何遍历没关系,总之就是遍历所有叶结点才能得到深度。
avatar
s*v
10
But the 3D really upsets other ARM fabless.
Anyway, how do you feel about the ARMv8? Is that a make-sense tech to allow
ARM to open a field in Intel's backyard?
I remember Applied Micro uses power pc arch, right? Don't know it filters
with ARM for couple of years.

【在 a***e 的大作中提到】
: 3D has nothing to do with mobile
avatar
r*o
11
好吧,能不能具体说说怎么弄呢? 如果不改变节点数据结构的话。

【在 d*****a 的大作中提到】
: 这应该和如何遍历没关系,总之就是遍历所有叶结点才能得到深度。
avatar
a*e
12
not much detail leak out.
no idea.

allow

【在 s******v 的大作中提到】
: But the 3D really upsets other ARM fabless.
: Anyway, how do you feel about the ARMv8? Is that a make-sense tech to allow
: ARM to open a field in Intel's backyard?
: I remember Applied Micro uses power pc arch, right? Don't know it filters
: with ARM for couple of years.

avatar
m*g
13
int treeDepthNonRec(treeNode *root)
{
int maxDepth = 0;
if(!root) return 0;
stack > treeNodeStack;
//using traversal
treeNodeStack.push(make_pair(root, root->numChildren));

int depth = 0;
while(!treeNodeStack.empty())
{
pair curNode = treeNodeStack.top();
treeNodeStack.pop();
if(curNode.second)
{
treeNode *curChild = curNode.first->children[curNode.second-1];
avatar
r*o
14
多谢!

【在 m*****g 的大作中提到】
: int treeDepthNonRec(treeNode *root)
: {
: int maxDepth = 0;
: if(!root) return 0;
: stack > treeNodeStack;
: //using traversal
: treeNodeStack.push(make_pair(root, root->numChildren));
:
: int depth = 0;
: while(!treeNodeStack.empty())

avatar
h*8
15
请教一下 有个地方没看懂
if(curNode.second)
{
treeNode *curChild = curNode.first->children[curNode.second-1];
treeNodeStack.push(make_pair(curNode.first, curNode.second-1));
treeNodeStack.push(make_pair(curChild, curChild->numChildren));
}
else
{
if(!(curNode.first->numChildren)) //leaf node
{
depth = 0;
}
else
这里最后一个else是什么情况?哪些情况才会depth++?

【在 m*****g 的大作中提到】
: int treeDepthNonRec(treeNode *root)
: {
: int maxDepth = 0;
: if(!root) return 0;
: stack > treeNodeStack;
: //using traversal
: treeNodeStack.push(make_pair(root, root->numChildren));
:
: int depth = 0;
: while(!treeNodeStack.empty())

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。