\subsection{Removing the logarithmic factor by offline interning} \label{sec:dpt-linear-normalization} The preceding implementation uses simple comparison-based dictionaries and a doubling suffix array. Its logarithmic factor is not inherent. The following refinement uses standard linear-time integer-string primitives, and replaces online interning with a batch computation. \emph{Interning} means assigning the same identifier to records that denote the same object. The online version repeatedly searches a dictionary. Here the parent of a raw record can be constructed before we know whether another equal record exists. We may therefore build all occurrence paths first and identify duplicates afterwards. The proof below must bound the number of \emph{occurrences}, not just the number of distinct states; otherwise postponing deduplication would not justify linear time. \begin{lemma}[Batch identification of persistent words] \label{lem:batch-cons-identification} Suppose $M$ records have the form $(a_i,t_i)$, where $a_i\in[1,O(M)]$ is an integer letter and $t_i$ is either the empty word or an earlier record. Record $i$ denotes the letter $a_i$ followed by the word of $t_i$. All records can be assigned identifiers for equality of their denoted words in deterministic $O(M)$ time and $O(M)$ words. The letters and the denoted words need not be inserted in lexicographic order, and the denoted words are not expanded. The empty collection is handled directly. \end{lemma} \begin{proof} Compute the length $d_i=1+d_{t_i}$ in insertion order, taking the empty word to have length zero. Let $N_d$ be the number of records of length $d$. All lengths are at most $M$. First sort the records once by $(d_i,a_i)$ using two stable counting sorts on the $O(M)$ integer ranges. Within each length, compress the occurring letter values to local ranks $1,\ldots,A_d$, where $A_d\le N_d$. Equality of these local ranks is exactly equality of the original letters within that length. Process lengths increasingly. The tails of records of length $d$ have length $d-1$ and have already received local equality ranks in a range of size at most $N_{d-1}$; for $d=1$, the empty tail has its own single rank. Sort the $N_d$ pairs \[ (\text{local letter rank},\text{local tail equality rank}) \] by two counting passes. Equal pairs receive equal new local ranks. This is correct by induction: two nonempty words are equal precisely when their first letters and tails are equal. Distinct lengths cannot denote equal words. Adding a cumulative offset to the ranks at each length gives globally unique equality identifiers. The cost at length $d$ is $O(N_d+N_{d-1}+1)$. Its sum is $O(M)$, including empty length buckets, since every record occurs in at most two of these terms and the maximum length is at most $M$. All records, counting arrays, ranks and offsets occupy $O(M)$ words. \end{proof} \begin{theorem}[Linear original-order normalization] \label{thm:dpt-linear-original-normalization} The original DPT generation-order normalization in Theorem~\ref{thm:dpt-original-normalization} can be performed in deterministic $O(n)$ time and $O(n)$ working words on the word RAM. The same bound applies to conversion from an arbitrary supplied functional digraph using the earlier linear tree-code conversion. This computes relative generation order, not absolute generation ranks. \end{theorem} \begin{proof} Use linear-time integer suffix-array construction, such as K\"arkk\"ainen, Sanders and Burkhardt's DC3 algorithm~\cite{KSB2006}, on the original length-$n$ size-code text. Its alphabet lies in $[0,n]$. Construct the LCP array and a static range-minimum structure in linear time and words, with constant query time~\cite{BFC2000}. Thus every LCP test in the residual-form stage takes constant time. Sort the $O(n)$ residual forms by their size and body-suffix rank using two counting passes on $O(n)$ ranges, and collapse equal bodies by the same adjacent LCP tests as before. The exact DPT tree-order ranks are obtained in $O(n)$ time. Next build the ancestor chain of \emph{each input component occurrence} without looking up or merging previously encountered states. A component of size $m$ and cycle length $q$ has exactly $m-q$ parent steps. Consequently all chains together have at most $n$ steps, regardless of duplicates. Store a fresh cons record whenever a split needs one, sharing the unchanged raw tail. The previous analysis gives at most $n$ initial records and $2n$ split records. All leading-singleton removals still cost $O(n)$: along each occurrence's chain, charge a removed record to an insertion or to that chain's initial list. No online equality test is needed to construct a parent or its candidate-position key. Apply Lemma~\ref{lem:batch-cons-identification} to these raw cons records. Their head letters are the residual-tree ranks. If fewer than a linear number of records occur, first compress their occurring head values by one counting pass on the original $O(n)$ range; this still costs $O(n)$ and gives the lemma's $O(M)$ alphabet range. The case of no nonempty lists is immediate. Each raw component state is now described by the integer triple \[ (\text{component size},\text{leading singleton count}, \text{list equality identifier}). \] All coordinates are $O(n)$. Three counting passes identify equal states in linear time. Equal states have equal parents and equal inverse-merge keys because the DPT parent is a deterministic function of the code. Hence replacing raw state references by their equality identifiers and removing repeated edges produces precisely the ancestor-closed subtree used in the preceding proof. Finally sort all retained edges together by parent identifier and the two integer coordinates of their candidate key. A constant number of counting passes orders the child lists and removes duplicate edges in $O(n)$ time. Root states can similarly be ordered by component size. The alternating traversal, output marks with multiplicity, and the writing of the normalized input codes use $O(n)$ further work and words. All stages are deterministic. The tree and component conversion from an arbitrary functional digraph already has the same bound, so composing the stages proves the last assertion. \end{proof} The suffix-array and range-minimum primitives are classical. The refinement is the bounded total ancestor expansion and batch replacement of generation-order dictionaries for the specified all-$L$-then-all-$R$ order. Priority for this normalization problem has not been established. No new general string-indexing or graph-isomorphism algorithm, or first linear-time canonical signature, is claimed: compare~\cite{HB1980} and Section~\ref{sec:dpt-generation-normalization}, including the abstract of~\cite{GZRG2021}. The construction uses $O(n)$ words. Applying it afresh to each output preserves linear full delay, but alone preserves neither CAT total time nor $O(n)$ working bits.