Q:(B)將資料2、1、4、5、3 依序插入空的二元搜尋數(binary search tree),再以前
序追蹤(
preorder traversal)其結果為?
(A)12345
(B)21435
(C)21453
(D)54321
桃園縣98年國民中學新進教師甄選【專門科目:電腦】試題#2191
求以下程式的時間複雜度:
for(i=1;i<n;i++)
{
for(j=1;j<n;j=j+i)
x=x+i;
}
答案是nΣ1/n=nθ(logn)=Θ(nlogn)
本信件可能包含中華電信股份有限公司機密資訊,非指定之收件者,請勿蒐集、處理或利用本信件內容,並請銷毀此信件.如為指定收件者,應確實保護郵件中本公司之營業機密及個人資料,不得任意傳佈或揭露,並應自行確認本郵件之附檔與超連結之安全性,以共同善盡資訊安全與個資保護責任.
Please be advised that this email message (including any attachments) contains confidential information and may be legally privileged. If you are not the intended recipient, please destroy this message and all attachments from your system and do not further collect, process, or use them. Chunghwa Telecom and all its subsidiaries and associated companies shall not be liable for the improper or incomplete transmission of the information contained in this email nor for any delay in its receipt or damage to your system. If you are the intended recipient, please protect the confidential and/or personal information contained in this email with due care. Any unauthorized use, disclosure or distribution of this message in whole or in part is strictly prohibited. Also, please self-inspect attachments and hyperlinks contained in this email to ensure the information security and to protect personal information.
Subscribe to:
Post Comments (Atom)
熱門必看
-
若某企業資料庫中紀錄員工資料的關聯式(relational)資料表(table)之schema 如下: Employee (EmpNum, Name, Salary, SupNum) 各屬性(attribute)之意義依序為員工代碼、姓名、月薪、直屬長官員工代號,其中 EmpNu...
-
https://www.dcard.tw/f/exam/p/240117955 回覆 B3-1 背單字太慢,你只是聽一些雜誌&youtube也沒甚麼卵用,用一兩個月沒有接觸到那領域的題材,大概就忘記87%了,而且覆蓋到的專業字比率太低,CP值不高,還會壓縮到你看其他科目的...
-
簡章請開啟: https://drive.google.com/file/d/0B4_OvWA7CcOPZTJlMnJzaEpQYVk/view?usp=sharing 中華電信 母公司 工作機會,基於經濟不景氣,青年謀職不易,故分享該工作機會。 報名期間至 105 年 ...
-
http://www.lib.pu.edu.tw/new/exam/trans/index.html
-
作者: pttisblue (回原點) 看板: Examination 標題: [心得] 中華電信專四第二類電力組面試心得 時間: Mon Aug 26 18:20:12 2013 [心得] 考試、上榜、落榜、讀書...等心得文。 原po第一次也希望是最後一次...
-
中華電信100%轉投資「光世代建設開發股份有限公司」 對外招募人才 基於經濟不景氣,青年謀職不易,故分享招募與工作機會。 招募單位: 「光世代建設開發股份有限公司」中華電信100%轉投資(非中華電信母公司,第二階段有考試。) 招募人員: MIS資訊管理人員 招募...
-
上一題答案是A 32.在資料庫系統中,為了避免系統發生故障(failure)後造成資料錯亂,通常會備有預防措施的回復機制。試問下列基於交易紀錄做回復處理(log-based recovery)的機制可能遇到的情況之敘述,何者錯誤? (a)在停電或斷電情況下導致的系統當機,電腦主記...
-
車況問題或不當使用等除外,例如過度充電,造成失水變型,或過度放電,電壓低於11V以下,造成電阻產生,或外殼破損.....。建議:遇到問題時請先用電表量測基本電壓,以及發電機電壓,電路電流等狀況,再判斷是否為電池問題。購買前請先提供車型及原電池型號。若買錯電池型號欲退換貨,需保持商...
-
公告時間: 中華民國 103 年 1 月 3 日公告 報名期間: 103 年 1 月 6 日(星期一)09:00 至103 年 1 月 16 日(星期四)18:00 報名方式: 一律採網路報名。 簡章請見: http://cht-exam.blogspot.tw/2...
No comments:
Post a Comment