试题与答案

算法的空间复杂度是指( )。A.算法程序的长度 B.算法程序中的指令条数 C.算

题型:单项选择题

题目:

算法的空间复杂度是指( )。

A.算法程序的长度

B.算法程序中的指令条数

C.算法程序所占的存储空间

D.执行过程中所需要的存储空间

答案:

参考答案:D

解析:算法的复杂度主要包括算法的时间复杂度和算法的空间复杂度。所谓算法的时间复杂度是指执行算法所需要的计算工作量;算法的空间复杂度一般是指执行这个算法所需要的内存空间。

试题推荐
题型:补全对话,情景问答
读一读下列问题,从方框中选择正确的答句。
( ) 1. What can you do?  
( ) 2. Who's the young man?  
( ) 3. Where is the sofa?   
( ) 4. What do you do on weekends?
( ) 5. Is there a mountain near the village?         
( ) 6. What would you like for lunch?        
( ) 7. Are you helpful at home?              
( ) 8. Would you like some tomatoes?
A. I'd like some potatoes and green beans.   
B. I can empty the trash. 
C. Sure.   
D. It's in the living room. 
E. I often do homework and watch TV.    
F. Yes, it's healthy.  
G. He's our new math teacher.   
H. Yes, there is.
查看答案
微信公众账号搜索答案