TransCSI 板


LINE

http://www2.nuk.edu.tw/lib/exam/95/trans2/95cs(2)-trf.pdf 95年计概 http://www2.nuk.edu.tw/lib/exam/96/trans2/96cs(2)-trf.pdf 96年计概 九五年计概 3. Suppose that a list L of 8 integers 12,5,13,7,9.14,4,8 are given. Please design a computing method (or algorithm) that determines if an integer k exists in L . Return the position of k if it is found in L and -1 otherwise. State your algorithm in pseudocode or C/C++/Java. 这我题我看不太懂题目,是要在这八个整数中找一个k的位址吗? "L and -1 otherwise." 不懂意思。 4. Let A下标(m*n) and B下标(n*m) be two matrixes. Please write a pseudocode to compute A(m*n)xB(n*m) 这应该是矩阵乘法,我以前有写过.....详细步骤我忘了 我记得要先定义矩阵 然後 交换? 可是m*n没有实际数字的矩阵要怎麽定义? 另外有人可以交我BBS的上下标要怎麽输入吗? 九六年计概 4. In C language, “&”, “|”, and “~” are bitwise AND, bitwise OR,and one ’s complementoperators, respectively. Let x be an unsigned int in C. (a) Write an if-statement that checks whether bits 0, 5, 6 of x are all 1’s using one of these operators. (5%) (b) Write an if-statement that checks whether any of the bits 0, 5, 6 of x is 1 using two of these operators. 题意看不太懂? 这题是问怎样用1的补数表示吗? 感觉不太像 6.Write a function in C or Java that right rotates the contents of a given integer array. For example, if A = {45, 23, 11, 87, 4, 6, 26, 10}, then we have A = {10, 45, 23, 11, 87, 4, 6, 26} after it has been right rotated. 看不懂题目, right rotated我google没看到比较像的 ? 8.Let C(n, k) denote the number of ways to select k out of n items without order. It is known that C(n ,1) = n, C(n, n) = 1, and C(n, k) = C(n-1, k-1)+C(n-1, k). Please write a recursive function comb(int n, int k) that computes C(n ,k) based on the above-mentioned knowledge 这也看不懂,好像是排列组合问题? 问题很多,麻烦各位了。 --



※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 118.167.169.139
1F:推 future1234:3. L指的就是list , "-1" 就是找不到要回传的值 06/30 18:10
2F:→ future1234:4.如果A(m*n)是 A[m][n] ,C[m][m] = A[m][n] x B[n][m] 06/30 18:15
3F:推 future1234:6.感觉是把最後一个拉到最前面的位置, 其它後退.... 06/30 18:26
4F:推 avogau:6.题目写的很清楚 把最右边的放到最左边 其他像右shift 06/30 18:26
5F:→ future1234:8.感觉好像少了个终止条件 C(n,0) = 1 06/30 18:28







like.gif 您可能会有兴趣的文章
icon.png[问题/行为] 猫晚上进房间会不会有憋尿问题
icon.pngRe: [闲聊] 选了错误的女孩成为魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一张
icon.png[心得] EMS高领长版毛衣.墨小楼MC1002
icon.png[分享] 丹龙隔热纸GE55+33+22
icon.png[问题] 清洗洗衣机
icon.png[寻物] 窗台下的空间
icon.png[闲聊] 双极の女神1 木魔爵
icon.png[售车] 新竹 1997 march 1297cc 白色 四门
icon.png[讨论] 能从照片感受到摄影者心情吗
icon.png[狂贺] 贺贺贺贺 贺!岛村卯月!总选举NO.1
icon.png[难过] 羡慕白皮肤的女生
icon.png阅读文章
icon.png[黑特]
icon.png[问题] SBK S1安装於安全帽位置
icon.png[分享] 旧woo100绝版开箱!!
icon.pngRe: [无言] 关於小包卫生纸
icon.png[开箱] E5-2683V3 RX480Strix 快睿C1 简单测试
icon.png[心得] 苍の海贼龙 地狱 执行者16PT
icon.png[售车] 1999年Virage iO 1.8EXi
icon.png[心得] 挑战33 LV10 狮子座pt solo
icon.png[闲聊] 手把手教你不被桶之新手主购教学
icon.png[分享] Civic Type R 量产版官方照无预警流出
icon.png[售车] Golf 4 2.0 银色 自排
icon.png[出售] Graco提篮汽座(有底座)2000元诚可议
icon.png[问题] 请问补牙材质掉了还能再补吗?(台中半年内
icon.png[问题] 44th 单曲 生写竟然都给重复的啊啊!
icon.png[心得] 华南红卡/icash 核卡
icon.png[问题] 拔牙矫正这样正常吗
icon.png[赠送] 老莫高业 初业 102年版
icon.png[情报] 三大行动支付 本季掀战火
icon.png[宝宝] 博客来Amos水蜡笔5/1特价五折
icon.pngRe: [心得] 新鲜人一些面试分享
icon.png[心得] 苍の海贼龙 地狱 麒麟25PT
icon.pngRe: [闲聊] (君の名は。雷慎入) 君名二创漫画翻译
icon.pngRe: [闲聊] OGN中场影片:失踪人口局 (英文字幕)
icon.png[问题] 台湾大哥大4G讯号差
icon.png[出售] [全国]全新千寻侘草LED灯, 水草

请输入看板名称,例如:BabyMother站内搜寻

TOP