Content deleted Content added
Still working on this! Made some text edits to try and fit the wikipedia standards. Still a work in progress. |
Citation bot (talk | contribs) Alter: url, title, template type. URLs might have been anonymized. Add: isbn, chapter, authors 1-1. Removed URL that duplicated identifier. Removed parameters. Some additions/deletions were parameter name changes. | Use this bot. Report bugs. | #UCB_CommandLine |
||
Line 9:
An array that takes a sequence of numbers <math>A=\{x_{0},x_{1},...,x_{n}\}</math> and stores the differences between each element in the array. More generally an array <math>D(A)=y_{0},y_{1},...,y_{n}</math> where <math>y_{i}=x_{i}-x_{i-1}</math>. The difference array of a sequence <math>A</math> can be denoted as <math>D(A)</math>. Commonly a difference array is use to make a series of range queries with constant [[time complexity]]<ref name=":2">{{Cite book |last=Laaksonen |first=Antti |url=https://
<math>\begin{array}{l}
Line 36:
* <math>x</math> Value to add to the elements within <math>[l,r]</math>.
Difference arrays are used to update arrays that are modified using [[Range Queries|range queries]] within [[constant time]].<ref name=":1">{{Cite web |last=Katiyar |first=Ishank |date=2021-07-30 |title=Understanding Difference Array: The Underrated Constant Time Range Update Algorithm (Part 1) |url=https://medium.com/@ishankkatiyar162/understanding-difference-array-the-underrated-constant-time-range-update-algorithm-part-1-e432ada7f1f5
<math>D(A)=[0,0,0,0,0] \underbrace{\to}_{(l,r,x)}
Line 62:
=== Steganalaysis ===
Methods of JPEG base steganography can be detected using difference arrays. It has been shown that Markov features that were extracting from zigzag intra-block and inter-block difference array improve steganography detection substantially. By calculating difference arrays along the horizontal and vertical directions of the JPEG's data array, then applying a Markov matrix to these difference arrays intra-block features are able to be constructed.<ref>{{Cite
== References ==
|