數據結構時間複雜度題庫

一、下列說法正確的是:數組  A、若是函數f(n)是O(g(n)),g(n)是O(h(n)),那麼f(n)是O(h(n))函數 解析:spa  B、若是函數f(n)是O(g(n)),g(n)是O(h(n)),那麼f(n)+g(n)是O(h(n))3d 解析:blog  C、若是a>b>1,logan是O(logbn),但logbn不必定是O(logan)class 解析:循環 logan=log(
相關文章
相關標籤/搜索