全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Input size, cost function?

又称: input size · cost function

Definition 13.2 University Computer Science — Year 1 · 第 13 章 — Asymptotic Analysis and Recurrences

The input size nn is a natural number measuring an input: the length of a list, the number of vertices and edges of a graph, the number of bits of an integer. The cost of an algorithm on an input is the number of elementary operations it performs; a cost function gives a cost for each size.

在原文中阅读 →