作者devilend (小美)
看板Grad-ProbAsk
标题Re: [理工] [资结]-台科资结(核对)
时间Sat Jan 30 01:03:13 2010
※ 引述《tool11 (:))》之铭言:
: 1.Use quicksort to sort the following array in ascending, show the results
: pass by pass.
: Original anay: 51,41, 11, 31,91, 71, 81, 61,21.
: pass1 [41 11 31] 51 [91 71 81 62]
: pass2 [11 31 ] 41 51 [91 71 81 62]
: pass3 11 31 41 51 [71 81 62] 91
: pass4 11 31 41 51 [81 62] 71 91
: pass5 11 31 41 51 62 71 81 91
: 这些过程 不知正确与否
: 2.Given an infix: "(A+B)*(C+D-E)*F", please find the related binary tree, and
: its prefix and postfix by using traversal.
: 前序 AB+CD+E-F**
: 後序 **+AB-+CDEF
: 图的地方 就划不出来了 以中序来说
: +
: / \
: A B
: 这地方 OK 下一步 就不知道 从哪下手了
*
/ \
* F
/ \
+ -
/ \ / \
A B + E
/\
C D
: 3.What is the largest value that can be represented in a floating-point
: system in which each value is encoded by a byte whose most significant
: bit is the sign bit, the next three bits represent the exponent
: field in excess notation, and the last four bits represent the mantissa?
: 这题找了答案 7.5
: 有点不懂
: 一些书 也没针对这解释
: 拜托 大家了 谢谢^^
0 111 1111
sing exponent mantissa
(7-4) 3 -1 -2 -3 -4
+ 2 * 0.1111 = 2 *(2 + 2 + 2 + 2 ) = 7.5
应该是这样吧..
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 219.71.13.143