For questions about the limits of a certain feature of a programming language. Note that this site is not for the evaluation mathematical limits without the use of programming.
Questions tagged [limits]
330 questions
28
votes
2 answers
What are sublinear algorithms?
I have been asked the following question by one of my fellow mates.
Which of the following expressions is not sublinear?
O(log log n)
O(n)
O(logn)
O(root(n))
I have gone through https://en.wikipedia.org/wiki/Time_complexity#Sub-linear_time but…

station
- 6,715
- 14
- 55
- 89
24
votes
4 answers
Practical Limits of ElasticSearch + Cassandra
I am planning on using ElasticSearch to index my Cassandra database. I am wondering if anyone has seen the practical limits of ElasticSearch. Do things get slow in the petabyte range? Also, has anyone has any problems using ElasticSearch to index…

Henry
- 926
- 2
- 12
- 27
23
votes
10 answers
How would you set a variable to the largest number possible in C?
How would you set a variable to equal infinity (or any guaranteed largest number value) in C?

Sam
- 433
- 2
- 4
- 7
22
votes
3 answers
Android 3.x+ Java ZipFile Class - Can't read ZipEntries from big files
If I open a big zip file (250MB) via the ZipFile class and try to read the entries. This works fine on 2.x in the emulator and real hardware. If I use the exact some code on my tablet (Asus Transformer running 4.0.3) or the emulator (3.2), I can't…

wbb
- 266
- 1
- 3
22
votes
4 answers
What is the easiest way to generate random integers within a range in Swift?
The method I've devised so far is this:
func randRange (lower : Int , upper : Int) -> Int {
let difference = upper - lower
return Int(Float(rand())/Float(RAND_MAX) * Float(difference + 1)) + lower
}
This generates random integers between…

RonH
- 504
- 1
- 3
- 12
20
votes
4 answers
Resident Set Size (RSS) limit has no effect
The following problem occurs on a machine running Ubuntu 10.04 with the 2.6.32-22-generic kernel: Setting a limit for the Resident Set Size (RSS) of a process does not seem to have any effect. I currently set the limit in Python with the following…

BrainCore
- 5,214
- 4
- 33
- 38
19
votes
1 answer
Rate for operation ChangeResourceRecordSets exceeded
I am trying to delete record set in Route 53 console (web interface), but get this error:
Rate for operation ChangeResourceRecordSets exceeded
I tried deleting the record set via API, but I get the same error. Which limit have I exceeded?

Kirill Zhirnov
- 365
- 2
- 12
18
votes
2 answers
Where are the limits for Qt types?
Regularly, I could reference limits.h to see what the max is for a certain type, like an int or long.
In Qt, there are types like qlonglong. Is there a header file and/or documentation that can be used in a similar way to manually or…

Cory Klein
- 51,188
- 43
- 183
- 243
16
votes
1 answer
Is there a size limit on a text file?
Duplicate of: Is there an upper limit on .txt file size?
What is the limit to how much you can write to a text file? Any help would be appreciated.
Rick
13
votes
2 answers
Relative positioning of geom_text in ggplot2?
I am using geom_text to annotate plots in gglot2 and I want use relative positioning rather than absolute. That is, I want a position of (0.5, 0.5) to be dead center regardless of the x and y axis limits. Is that possible?
Alternatively I could of…

c00kiemonster
- 22,241
- 34
- 95
- 133
13
votes
2 answers
linux limits.conf not working?
I configured /etc/security/limits.conf like this.
user1 soft core 0
user1 hard core 0
Then, I rebooted the system and logged in as root
then I did this.
su user1
ulimit -c unlimited
then I…

daehee
- 5,047
- 7
- 44
- 70
13
votes
5 answers
What is the data type for length property for Java arrays?
I want to find out if length property for Java arrays is an int/long or something else.

cheeming
- 1,023
- 9
- 14
13
votes
4 answers
C++ variable types limits
here is a quite simple question(I think), is there a STL library method that provides the limit of a variable type (e.g integer) ? I know these limits differ on different computers but there must be a way to get them through a method, right?
Also,…

Jesse Emond
- 7,180
- 7
- 32
- 37
12
votes
3 answers
Why is ARG_MAX not defined via limits.h?
On Fedora Core 7, I'm writing some code that relies on ARG_MAX. However, even if I #include , the constant is still not defined. My investigations show that it's present in , but this is supposed to be portable across…

Josh Matthews
- 12,816
- 7
- 36
- 39
12
votes
2 answers
A limit clarification for the new Firestore
So in the limits section (https://firebase.google.com/docs/firestore/quotas) of the new Firestore product from Firebase it says:
Maximum write rate to a collection in which documents contain
sequential values in an indexed field: 500 per…

DarkNeuron
- 7,981
- 2
- 43
- 48