亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? 7.txt

?? icarnegie SSD5 Mutli-choice4-7
?? TXT
?? 第 1 頁 / 共 2 頁
字號:
   See section 4.1.3 of the course notes.  
 

--------------------------------------------------------------------------------

 7. 
 The asymptotic running time that most closely bounds the performance of a selection sort on an input array with length n is  
 

  (a) O(2n)
 (b) O(n2)
 (c) O(n log n)
 (d) O(n)  

 Correct answer is  (b)  

 Your score on this question is: 0.00  

 Feedback: 
   See section 4.2.1 of the course notes.  
 

--------------------------------------------------------------------------------

 8. 
 Consider the following C++ code fragment.

for( int i = 0; i < n; i++ ) {
    for( int j = 0; j < n/5; j++ ) {
        body;
    }
}

If body executes in constant time, then the asymptotic running time that most closely bounds from above the performance of this code fragment is
 
 

  (a) O(n)
 (b) O(n log n)
 (c) O(n3)
 (d) O(n2)  

 Correct answer is  (d)  

 Your score on this question is: 0.00  

 Feedback: 
   See section 4.2.1 of the course notes.  
 

--------------------------------------------------------------------------------

 9. 
 The asymptotic running time that most closely bounds the performance of insertion sort on an input array with length n is  
 

  (a) O(2n)
 (b) O(n2)
 (c) O(n log n)
 (d) O(n)  

 Correct answer is  (b)  

 Your score on this question is: 10.00  

 Feedback: 
   See section 1.7.2 of the course notes.  
 

--------------------------------------------------------------------------------

 10. 
 Consider the following definition of a recursive function, power, that will perform exponentiation.

      int  power( int b, int e )
      {
        if( e == 0 ) return 1;
        if( e % 2 = 0 ) return  power( b * b, e/2 ); 
        return  b * power( b * b, e/2 );
      }

Asymptotically in terms of the exponent e, the number of calls to power that occur as a result of the call power(b,e) is
 
 

  (a) exponential
 (b) quadratic
 (c) logarithmic
 (d) linear  

 Correct answer is  (c)  

 Your score on this question is: 0.00  

 Feedback: 
   See section 4.2.1 of the course notes.  
 

--------------------------------------------------------------------------------

 Go to top of assessment.  

 Total score: 40.00 

 ? Copyright 2004 iCarnegie, Inc. All rights reserved.  
View Assessment Result: Multiple-Choice Quiz 7


 

 Your performance was as follows:  

 1. 
 Which of the following statements is true of the selection-sort algorithm? 

It is a divide-and-conquer algorithm typically implemented using recursion. 
An implementation of the algorithm typically requires the use of a hash table.
 
 

  (a) I only
 (b) I and II
 (c) None
 (d) II only  

 Correct answer is  (c)  

 Your score on this question is: 0.00  

 Feedback: 
   
See section 4.1.2, subsection "Selection Sort," in the course notes. 
 
 

--------------------------------------------------------------------------------

 2. 
 Consider the following C++ template function. 

template <class T>
void mystery_sort(vector<T>& v) {

    for (int i = 0; i < v.size() - 1; i++) {
        int best = i;
        for (int j = i + 1; j < v.size(); j++) {
            if (v[j] < v[best]) {
                best = j;
            }
        }

        if (best != i) {
            T temp = v[i];
            v[i] = v[best];
            v[best] = temp;
        }
    }
}
The above function implements which of the following sort algorithms? 
 
 

  (a) Merge sort
 (b) Selection sort
 (c) Bubble sort
 (d) Quicksort  

 Correct answer is  (b)  

 Your score on this question is: 10.00  

 Feedback: 
   
See section 4.1.2, subsection "Selection Sort," in the course notes. 
 
 

--------------------------------------------------------------------------------

 3. 
 In a search over a data set with 1000 items, the maximum number of items examined by a linear search is _____, and the maximum number of items examined by a binary search is _____. 
 
 

  (a) 3, 100
 (b) 100, 3
 (c) 10, 1000
 (d) 1000, 10  

 Correct answer is  (d)  

 Your score on this question is: 0.00  

 Feedback: 
   
See section 4.1.1 in the course notes. 
 
 

--------------------------------------------------------------------------------

 4. 
 Which of the following search algorithms can be applied to unsorted data? 

Linear search 
Binary search
 
 

  (a) None
 (b) II only
 (c) I and II
 (d) I only  

 Correct answer is  (d)  

 Your score on this question is: 10.00  

 Feedback: 
   
See section 4.1.1 in the course notes. 
 
 

--------------------------------------------------------------------------------

 5. 
 Which of the following indicates the primary difficulty with hashing in general?  
 

  (a) Access in hash tables is slow.
 (b) Collisions will occur.
 (c) Hash functions are hard to compute.
 (d) Hash tables take up a lot of memory.  

 Correct answer is  (b)  

 Your score on this question is: 10.00  

 Feedback: 
   See section 4.1.3 of the course notes.  
 

--------------------------------------------------------------------------------

 6. 
 Suppose hash() is a hash function. The main idea behind hashing is to use a key k to store a value v in which position of a table?  
 

  (a) hash(k)
 (b) hash(v)
 (c) hash(k,v)
 (d) hash() (a random position computed by the hash function using k)  

 Correct answer is  (a)  

 Your score on this question is: 10.00  

 Feedback: 
   See section 4.1.3 of the course notes.  
 

--------------------------------------------------------------------------------

 7. 
 Consider the following C++ code fragment.

for( int i = 0; i < n; i += 2 ) {
    for(int  j = i; j > 0; j -= 3 ) {
        body
    }
}

If body executes in constant time, then the asymptotic running time that most closely bounds from above the performance of this code fragment is
 
 

  (a) O(n2)
 (b) O(n log n)
 (c) O(n3)
 (d) O(n)  

 Correct answer is  (a)  

 Your score on this question is: 10.00  

 Feedback: 
   See section 4.2.1 of the course notes.  
 

--------------------------------------------------------------------------------

 8. 
 Consider the following definition of a recursive function, power, that will perform exponentiation.

      int  power( int b, int e )
      {
        if( e == 0 ) return 1;
        if( e % 2 = 0 ) return  power( b * b, e/2 ); 
        return  b * power( b * b, e/2 );
      }

Asymptotically in terms of the exponent e, the number of calls to power that occur as a result of the call power(b,e) is
 
 

  (a) quadratic
 (b) exponential
 (c) logarithmic
 (d) linear  

 Correct answer is  (c)  

 Your score on this question is: 10.00  

 Feedback: 
   See section 4.2.1 of the course notes.  
 

--------------------------------------------------------------------------------

 9. 
 Consider the following C++ code fragment.

for( int i = 0; i < n; i++ ) {
    for( int j = 0; j < n/5; j++ ) {
        body;
    }
}

If body executes in constant time, then the asymptotic running time that most closely bounds from above the performance of this code fragment is
 
 

  (a) O(n)
 (b) O(n log n)
 (c) O(n2)
 (d) O(n3)  

 Correct answer is  (c)  

 Your score on this question is: 10.00  

 Feedback: 
   See section 4.2.1 of the course notes.  
 

--------------------------------------------------------------------------------

 10. 
 Consider the following code fragment.

      for( int i = n; i > 0; i /= 2 ) body;

If body executes in O(1) time, then the asymptotic running time that most closely bounds the fragment is
 
 

  (a) O(n log n)
 (b) O(log n)
 (c) O(n)
 (d) O(n2)  

 Correct answer is  (b)  

 Your score on this question is: 0.00  

 Feedback: 
   See section 4.2.1 of the course notes.  
 

--------------------------------------------------------------------------------

 Go to top of assessment.  

 Total score: 70.00 

 ? Copyright 2004 iCarnegie, Inc. All rights reserved.  

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产欧美精品一区二区三区四区 | 亚洲图片欧美一区| 成人不卡免费av| 亚洲婷婷国产精品电影人久久| 成人黄色免费短视频| 中文字幕日本不卡| 欧美午夜视频网站| 日本亚洲最大的色成网站www| 欧美mv日韩mv国产| 波多野结衣视频一区| 亚洲一区电影777| 日韩欧美中文一区| 国产宾馆实践打屁股91| 亚洲免费视频成人| 欧美一级片在线看| 国产高清久久久久| 亚洲一区二区视频| 精品少妇一区二区三区视频免付费| 丰满白嫩尤物一区二区| 一区二区三区丝袜| 日韩无一区二区| 国产成a人亚洲精品| 日韩毛片精品高清免费| 欧美日韩亚洲另类| 国产丶欧美丶日本不卡视频| 一区二区三区.www| 久久午夜电影网| 色婷婷亚洲一区二区三区| 另类小说欧美激情| 亚洲女同女同女同女同女同69| 日韩一区二区中文字幕| 99精品久久只有精品| 免费在线视频一区| 亚洲视频在线观看一区| 日韩美女天天操| av在线不卡免费看| 久久精品国产精品亚洲精品| 亚洲精品国产高清久久伦理二区| 日韩欧美国产麻豆| 在线亚洲欧美专区二区| 国产精品66部| 日本午夜一本久久久综合| 亚洲免费观看高清完整| 精品国产一区二区三区久久久蜜月 | 国产91精品一区二区麻豆网站| 香蕉影视欧美成人| 国产精品家庭影院| 久久众筹精品私拍模特| 欧美日本乱大交xxxxx| 97久久超碰精品国产| 国产一区二区三区黄视频 | 国产精品福利一区二区三区| 精品欧美乱码久久久久久 | 欧洲在线/亚洲| heyzo一本久久综合| 国产精品99久久久| 国内精品写真在线观看| 免费成人在线影院| 香蕉加勒比综合久久| 一区二区三区在线看| 中文字幕一区在线| 国产精品婷婷午夜在线观看| 欧美草草影院在线视频| 欧美一区二区在线看| 在线观看av一区| 日本道在线观看一区二区| 在线观看视频一区| 成人高清av在线| 成人99免费视频| 99精品欧美一区二区蜜桃免费 | 99久久免费精品高清特色大片| 国产河南妇女毛片精品久久久| 国内精品免费**视频| 看国产成人h片视频| 美美哒免费高清在线观看视频一区二区| 亚洲综合成人网| 亚洲午夜在线电影| 五月天婷婷综合| 日本少妇一区二区| 美女诱惑一区二区| 国产主播一区二区三区| 国产成人av福利| gogogo免费视频观看亚洲一| 成人av电影在线网| 91啦中文在线观看| 在线欧美日韩精品| 欧美三区免费完整视频在线观看| 欧美色综合网站| 在线综合+亚洲+欧美中文字幕| 制服丝袜亚洲精品中文字幕| 欧美成人r级一区二区三区| 2023国产精品视频| 国产精品欧美一区喷水| 亚洲天堂免费看| 亚洲va在线va天堂| 麻豆91在线播放| 国产在线精品免费av| 成人av免费观看| 精品视频色一区| 欧美大片在线观看一区二区| 久久精品无码一区二区三区| 国产精品久久久久永久免费观看 | 91精品国产综合久久福利| 26uuu另类欧美| 亚洲欧洲另类国产综合| 亚洲午夜影视影院在线观看| 裸体健美xxxx欧美裸体表演| 成人午夜av电影| 91久久精品一区二区| 日韩一区二区三区免费观看| 久久日一线二线三线suv| 亚洲婷婷综合久久一本伊一区| 日韩影院精彩在线| 床上的激情91.| 91麻豆精品国产无毒不卡在线观看 | 亚洲黄色av一区| 麻豆精品在线视频| 91社区在线播放| 日韩一区二区三区高清免费看看| 国产欧美一区二区在线观看| 亚洲午夜精品一区二区三区他趣| 韩国一区二区在线观看| 色天使久久综合网天天| 2023国产精华国产精品| 亚洲一区二区美女| 国产不卡视频一区二区三区| 欧美日韩国产系列| 国产精品白丝在线| 国产精品一品视频| 欧美三级韩国三级日本一级| 中文字幕国产一区二区| 免费精品视频在线| 91首页免费视频| 国产性天天综合网| 日本中文字幕不卡| 在线视频综合导航| 欧美韩日一区二区三区| 久久电影网站中文字幕| 欧美性生交片4| 亚洲欧美在线另类| 国产**成人网毛片九色| 日韩欧美国产电影| 亚洲午夜日本在线观看| 99国产精品国产精品毛片| 久久久夜色精品亚洲| 蜜桃一区二区三区在线观看| 欧美日韩一区成人| 依依成人综合视频| eeuss鲁片一区二区三区| 国产天堂亚洲国产碰碰| 久久国产欧美日韩精品| 欧美一区二区三区视频在线观看 | 日本亚洲视频在线| 欧美精品在线一区二区| 亚洲高清免费一级二级三级| 一本色道a无线码一区v| 中文字幕一区二区三区四区| 国产成人亚洲综合a∨婷婷| 精品国产凹凸成av人导航| 日韩国产精品91| 91麻豆精品国产91久久久久久| 亚洲综合色在线| 欧美亚洲尤物久久| 亚洲www啪成人一区二区麻豆| 欧美视频一区在线| 亚洲高清不卡在线观看| 欧美日韩情趣电影| 亚洲国产精品人人做人人爽| 欧美专区日韩专区| 午夜久久久久久电影| 欧美日韩精品免费观看视频| 香蕉乱码成人久久天堂爱免费| 欧美日韩一区二区电影| 视频一区中文字幕| 91精品国产综合久久国产大片| 日本欧美肥老太交大片| 精品欧美一区二区在线观看| 国产一区二区在线免费观看| 国产三级三级三级精品8ⅰ区| 国产成人亚洲综合a∨猫咪| 中日韩av电影| 日本久久电影网| 视频一区视频二区中文字幕| 日韩一区二区三区电影在线观看 | 日韩欧美国产系列| 国产在线播放一区三区四| 亚洲欧美激情一区二区| 91蜜桃视频在线| 视频一区在线播放| 久久亚洲精华国产精华液| voyeur盗摄精品| 亚洲成人高清在线| 久久无码av三级| 97se狠狠狠综合亚洲狠狠| 亚洲国产日韩精品| 精品奇米国产一区二区三区| 福利一区二区在线| 亚洲一区二区三区在线播放| 精品少妇一区二区三区在线视频| 不卡免费追剧大全电视剧网站|