Re: To increase speed on manipulating big arrays in Java with minimal bounds checking, ...
- From: Patricia Shanahan <pats@xxxxxxx>
- Date: Wed, 31 Aug 2005 13:45:41 GMT
Robert Klemme wrote: ....
Erm, strictly speaking copying becomes relatively cheaper (and thus neglectible) if the op is worse than O(n), doesn't it? Anyway, even if the op is O(n) you could neglect copying - from a theoretical perspective (O(n) = O(2n)). It might be different in practice if arrays are huge (mem allocation overhead) or if they are small and there are many invocations.
....
For any finite problem size, O(n) can be worse than O(n^2).
Patricia .
- Follow-Ups:
- References:
- To increase speed on manipulating big arrays in Java with minimal bounds checking, ...
- From: Casey Hawthorne
- Re: To increase speed on manipulating big arrays in Java with minimal bounds checking, ...
- From: Chris Uppal
- Re: To increase speed on manipulating big arrays in Java with minimal bounds checking, ...
- From: Robert Klemme
- Re: To increase speed on manipulating big arrays in Java with minimal bounds checking, ...
- From: Chris Uppal
- Re: To increase speed on manipulating big arrays in Java with minimal bounds checking, ...
- From: Robert Klemme
- To increase speed on manipulating big arrays in Java with minimal bounds checking, ...
- Prev by Date: Re: To increase speed on manipulating big arrays in Java with minimal bounds checking, ...
- Next by Date: Re: To increase speed on manipulating big arrays in Java with minimal bounds checking, ...
- Previous by thread: Re: To increase speed on manipulating big arrays in Java with minimal bounds checking, ...
- Next by thread: Re: To increase speed on manipulating big arrays in Java with minimal bounds checking, ...
- Index(es):