
- #Linear sequences verification
- #Linear sequences software
- #Linear sequences code
- #Linear sequences series
Now this can be used to produce the entire sequence so it is a good idea to use the LINQ. Here's how I would do it: public static IEnumerable DblLinear()
#Linear sequences series
You need to run two separate indexes and only increment each when the value produced by their respective series is lowest (or equal to the other). But the first should have also produced 57, 59, 61, 63, 65, 67, 69, 71, 73, 75, 77, 79, 81 before the second produces 82 for your sequence to be properly computed. When you get to i = 27, as per your example, the first series produces 55 and the second produces 82. What's going wrong is that you're using a single index to build your values. After that it just runs wild and I have no idea what it does wrong. The calculations are right until it hits 27. The number u(0) = 1 is the first one in u.įor each x in u, then y = 2 * x + 1 and z = 3 * x + 1 must be in u too.Įx: u = ġ gives 3 and 4, then 3 gives 7 and 10, 4 gives 9 and 13, then 7 gives 15 and 22 and so on.Īnd this is what I have so far: using System This is the formula I'm trying to - quote unquote - "convert" to code.Ĭonsider a sequence u where u is defined as follows:

#Linear sequences software
^ Software Considerations in Airborne System and Equipment Certification-RTCA/DO-178B, RTCA Inc., Washington D.C.I'm trying to get my performance skills (none existent) up to par but ran into a problem with writing out a formula into code.^ M.R.Woodward, D.Hedley and M.A.Hennell, “Experience with Path Analysis and Testing of Programs”, IEEE Transactions on Software Engineering, Vol.^ J.R.Brown, "Practical Application of Automated Software Tools", TRW Report No.Software Testing: A Craftsman’s Approach, Fourth Edition.
#Linear sequences verification
Software Testing, Verification and Reliability. "Inclusion, subsumption, JJ-paths, and structured path testing: a Redress".

Certifying Software Component Performance Specifications.
#Linear sequences code
, q, of a code unit, followed by a control flow jump either out of the code or to a basic block numbered r, where r≠( q+1), and either p=1 or there exists a control flow jump to block p from some other block in the unit. The formal definition of a LCSAJ can be given in terms of basic blocks as follows: Ī sequence of one or more consecutively numbered basic blocks, p, ( p+1). According to a monograph from 1986, LCSAJs were typically four times larger than basic blocks. In particular, conditional jumps generate overlapping LCSAJs: one which runs through to where the condition evaluates to false and another that ends at the jump when the condition evaluates to true (the example given further below in this article illustrates such an occurrence). Unlike (maximal) basic blocks, LCSAJs can overlap with each other because a jump (out) may occur in the middle of an LCSAJ, while it isn't allowed in the middle of a basic block.

the target line to which control flow is transferred at the end of the linear sequence.the start of the linear sequence of executable statements.Definition and characteristics of LCSAJ as a code region Īn LCSAJ is a software code path fragment consisting of a sequence of code (a linear code sequence) followed by a control flow Jump, and consists of the following three items: It has also been called Liverpool's Contribution to Silly Acronyms and Jokes. Introduced in 1976, the LCSAJ is now also referred to as the jump-to-jump path (JJ-path).

Professor Hennell later founded the Liverpool Data Research Associates (LDRA) company to commercialize the software test-bed produced for this work, resulting in the LDRA Testbed product. The LCSAJ analysis method was devised by Professor Michael Hennell in order to perform quality assessments on the mathematical libraries on which his nuclear physics research at the University of Liverpool depended.
