String Length
(Redirected from string length)
Jump to navigation
Jump to search
A String Length is a sequence length function that is a string function (whose input is a string.
- Context:
- It can be an Entity Size Measure.
- Example(s):
- StringLength("this string") ⇒ 11.
- StringLength(ATCATGGC) ⇒ 8.
- StringLength(Empty String) ⇒ 0.
- Document Length.
- …
- Counter-Example(s):
- a Sequence Length.
- a Set Size.
- See: String Distance Measure, Count Function.
References
2009
- http://en.wikipedia.org/wiki/String_(computer_science)
- The length of a string is the number of characters in the string (the length of the sequence) and can be any non-negative integer. The empty string is the unique string over Σ of length 0, and is denoted ε or λ.
2007
- (Kakkonen, 2007) ⇒ Tuomo Kakkonen. (2007). “Framework and Resources for Natural Language Evaluation." Academic Dissertation. University of Joensuu.
- Let [math]\displaystyle{ \Sigma }[/math] be an alphabet.
- A finite sequence of symbols [math]\displaystyle{ S=(x_1 x_2 … x_n), n≥0, x \in \Sigma }[/math] is called a string in alphabet [math]\displaystyle{ \Sigma }[/math].
- The length |S| of string S is n.
- The empty string is the sequence of length 0; written [math]\displaystyle{ \varepsilon }[/math].