[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"q-381704":3},{"question":4,"library":26},{"id":5,"libraryId":6,"type":7,"typeLabel":8,"stem":9,"options":10,"answer":19,"analysis":25},381704,162,1,"单选题","某个算法的时间复杂度递归式T（n）=T（n-1）+n，其中n为问题的规模，则该算法的渐进时间复杂度为（ ），若问题的规模增加了16倍，则运行时间增加（请作答此空）倍。",[11,15,18,22],{"key":12,"text":13,"correct":14},"A","16",false,{"key":16,"text":17,"correct":14},"B","64",{"key":19,"text":20,"correct":21},"C","256",true,{"key":23,"text":24,"correct":14},"D","1024","对于递归式，假设T（1）=1，则：T（n）=T（n-1）+n=T（n-2）+n-1+n=T（n-3）+n-2+n-1+n=1+2+…+n-1+n=n（n+1）\u002F2可见，时间复杂度为O（n2）。若问题的规模增加了16倍，则运行时间增加了162=256倍。",{"id":6,"name":27,"category":28,"favorite":29},"(中级) 软件设计师","职业资格",0]