Abstract
The modern information society is enabled by photonic fiber networks characterized by huge coverage and great complexity and ranging in size from transcontinental submarine telecommunication cables to fiber to the home and local segments. This worldwide network has yet to match the complexity of the human brain, which contains a hundred billion neurons, each with thousands of synaptic connections on average. However, it already exceeds the complexity of brains from primitive organisms, i.e., the honey bee, which has a brain containing approximately one million neurons. In this study, we present a discussion of the computing potential of optical networks as information carriers. Using a simple fiber network, we provide a proofofprinciple demonstration that this network can be treated as an optical oracle for the Hamiltonian path problem, the famous mathematical complexity problem of finding whether a set of towns can be travelled via a path in which each town is visited only once. Pronouncement of a Hamiltonian path is achieved by monitoring the delay of an optical pulse that interrogates the network, and this delay will be equal to the sum of the travel times needed to visit all of the nodes (towns). We argue that the optical oracle could solve this NPcomplete problem hundreds of times faster than bruteforce computing. Additionally, we discuss secure communication applications for the optical oracle and propose possible implementation in silicon photonics and plasmonic networks.
Similar content being viewed by others
Introduction
A class of famous complexity problems known as NPcomplete problems^{1,2} consists of such tasks as the traveling salesman problem that aims to find the shortest possible route on a map,^{1,3} the satisfiability task of determining a Boolean interpretation of the formula^{2} and the realword ‘clique problem’ of graph theory for finding the largest subset of people who all know each other.^{4} Importantly, different NPcomplete problems can be transferred to each other using a polynomial time reduction,^{1} which indicates that if one of these problems can be solved in a certain time, all of the others can be solved in that time plus a polynomial time induced by the reduction. Unfortunately, the bruteforce algorithm solution time increases exponentially with the size of the problem, and after many years of research, no improved algorithm has been found to solve these problems within a polynomial time using a deterministic Turing machine. In fact, many researchers believe that such an algorithm does not exist in principle. As a response to this failure of conventional computers, a number of physics approaches have been considered for NP problems.^{5} These approaches include the use of soap bubbles, protein folding, quantum^{6,7} and DNA^{8,9,10} computing. Optical computing also has been explored,^{11,12,13,14} including freespace white light interference,^{15} beam masking^{13,16,17,18} and time delay approaches.^{12,19} Unfortunately, not one of them reduces the complexity of the problem or offers technologically efficient solutions without exponentially increasing the demand on physical resources.
In this work, we provide experimental evidence that an NPcomplete problem may be solved using an optical telecommunication fiber network as the information carrier. We demonstrate this approach using the directed Hamiltonian path problem of deciding whether a map can be traveled in a unidirectional manner such that each town is visited exactly once by exploiting our network as an ‘oracle’ for making a judgment on the existence of the Hamiltonian path rather than for finding the exact path itself. We argue that although our solution does not remove the fundamental mathematical complexity, it provides a robust and fast oracle that could be scaled to analyze maps of considerable size. Realization and demonstration of a fastworking solution for NPcomplete problems within telecommunication networks may have a significant potential impact in applications such as secure communications, routing optimization and optical data processing.
The graph is implemented as a network consisting of optical fibers (roads) that connect all of the nodes (towns), and the network is probed using a short optical pulse. Visiting each town introduces a unique delay, and therefore, the existence of a directed Hamiltonian path can be asserted if a pulse is observed after a time delay equal to the sum of all of the towns’ delays. A proofofprinciple demonstration is performed on a fiber network representing a graph with five towns in which the decision is successfully obtained in only a few tens of nanoseconds. Although this result does not break the limitation of exponential solution time for NPcomplete problems, our approach allows solution of this NPcomplete problem at a rate that is hundreds of times faster than that of bruteforce computing and may already find applications in routing and secure communications. In addition, to ease certain scaling issues typical of physical methods and to realize more complex cognitive photonic functions, the optical oracle can readily be implemented in integrated optical networks, such as silicon photonics or plasmonic networks.
Materials and methods
A target graph with five nodes (towns) connected by directional paths (roads) is chosen to determine whether there exists a directed Hamiltonian path, as shown in Figure 1a. Node 1 is set as both the starting and ending node. It can be observed that a Hamiltonian path of 1→2→5→3→4→1 exists. The concept underlying this approach is that an optical pulse is injected into the graph starting from node 1 to mimic the behavior of a ‘traveler’. The pulse ‘traveler’ simultaneously attempts all possible routes in the graph. For example, a pulse that reaches node 2 from node 1 will simultaneously try the path from node 2 to node 3 and the path from node 2 to node 5. The return pulses are monitored at node 1. These pulses represent all of the different routes in the graph that start from and end at node 1. These routes include three basic loops: (i) 1(inject)→2→3→4→1; (ii) 1(inject)→5→3→4→1; and (iii) 1(inject)→2→5→3→4→1, as well as the combinations of these basic loops, i.e., 1(inject)→2→3→4→1→2 →5→3→4→1. Thus, if pulses traveling along different routes can be separated, the pronouncement of the existence of the Hamiltonian path becomes trivial. The method we use assigns specific delays to each node, i.e., node j has a delay of T_{j} (j=1–5). The delay of each node is chosen such that its sum can only be obtained by summing each node’s delay exactly once. This approach indicates that for a pulse that visits all of the nodes exactly once, the delay that it experiences is unique, i.e., this pulse will not overlap with other pulses traveling along different routes in the pulse train returning to node 1. If such a pulse is observed from the returning pulses after a total delay of , then we can conclude that a Hamiltonian path exists; otherwise, the answer is negative.
The actual realization of the graph is based on optical fiber and fiber couplers, as shown in Figure 1b. Details of the actual components and signal propagation are provided in Supplementary Information. For the specific graph used in this proofofconcept demonstration, the delays of each node are set using different lengths of fibers, i.e., 18.8 ns for node 1, 14.8 ns for node 2, 15 ns for node 3, 5 ns for node 4 and 28.4 ns for node 5, such that the total delay ns is unique. General strategies for the assignment of node delays in large graphs with arbitrary numbers of nodes and connections are discussed in the following section.
Results and discussion
The experimental setup is shown in Figure 2. Light from an amplified spontaneous emission source at 1.55 µm is modulated by a MachZehnder intensity modulator driven by an electrical pulse generator. After the modulator, the optical pulses have a pulse width of 8 ns, a repetition rate of 1 MHz and a pulse energy of 48 pJ. The pulses are injected into the target graph shown in Figure 1b. The pulses exiting the graph are detected by a photodetector and monitored by a realtime oscilloscope triggered by the synchronization signal from the pulse generator. Use of a lowcoherence amplified spontaneous emission source guarantees that the pulses in the graph are incoherently combined in the fiber coupler (e.g., node 2 and node 5 combine their output pulses at node 3). Otherwise, coherent addition would lead to pulse energy fluctuation due to interference and fiber length fluctuation. The pulse train outputs from the graph are shown in Figure 3a–3c. The output from node 1 shown in Figure 3a is also the output of the entire graph. The time axis shows the delay with respect to the injected pulse. In Figure 3a, the first pulse is the pulse that travels along the path of 1(inject)→2→3→4→1, and its time delay with respect to the injected pulse is 53.6 ns. The second pulse with equal amplitude is the pulse that travels along the path of 1(inject)→5→3→4→1, and its time delay is 67.2 ns. The delay relative to the first pulse is 13.6 ns. The third pulse is the pulse that travels along the path of 1(inject)→2→5→3→4→1, and its time delay is 82 ns, which is equal to the sum of the total delays. The observation of this pulse proves the existence of a Hamiltonian path in the graph. This pulse visits an additional node compared with the paths of the first two pulses, and thus, its amplitude is half of that of the first two pulses. Certain pulses with smaller amplitudes also can be observed. These pulses propagate two cycles in the graph, and their time delays and amplitudes are summarized in Table 1.
The inset of Figure 3a shows the output from node 1 on a larger time scale. It can be seen that the amplitudes of the output pulses vanish within 200 ns and thus do not overlap with the pulse train generated by the following injected pulse. Figure 3b shows the output pulses from the monitoring port of node 3. Because the output pulses of node 3 propagate to node 1 via node 4, they are expected to be the same as the output pulses from node 1 (i.e., pulses in Figure 3a) except for different pulse amplitudes. For easy comparison with the pulses shown in Figure 3a, the time axis of Figure 3b is shifted such that the corresponding pulses can be shown in the same timing position, i.e., the first pulse in Figure 3b generates the first pulse in Figure 3a, the second pulse in Figure 3b generates the second pulse in Figure 3a, and so on. For the output of node 5 shown in Figure 3c (note that the time axis is shifted in a manner similar to that of Figure 3b), the first pulse is the one originating directly from node 1, and the second pulse is the one traveling from node 1 via node 2. All of the remaining smallamplitude pulses also can be identified in a similar manner, as summarized in Table 1.
To verify the validity of the proposed optical approach for determining the existence of a Hamiltonian path, we disconnected path 2→5 in the graph. In this condition, the third pulse corresponding to the Hamiltonian path 1(inject)→2→5→3→4→1 is expected to disappear from the output pulse trains in nodes 1, 3 and 5. This behavior is indeed confirmed by the outputs shown in Figure 3d–3f, which were recorded after breaking the connection from node 2 to node 5.
The key to the unambiguous oracle performance is the assignment of suitable delays for each node in the graph. If the number of nodes is small, as in our proofofconcept demonstration, assignment of unique delays is straightforward. For the general case of a graph with N nodes and arbitrary connections among different nodes, node delays must be employed that satisfy the following relationship:
where C_{j} is a nonnegative integer representing the number of times node j has been visited, and N is the number of nodes in the graph. In other words, the total delay introduced by the Hamiltonian path can only be obtained by summing the delay of each node in the graph exactly once. Such delay combinations exist. A theoretical proposal of delay assignment suitable for optical solution of the Hamiltonian path problem was advanced by Oltean:^{12}
where Δt is the optical pulse duration. The corresponding solving time is Δt·N2^{N}. Alternative assignments also can be found, e.g.,
where p_{j} (j=1–N) is a prime number. Detailed proof of the validity of these two unique assignments is provided in Supplementary Information.
Similar to other ‘physical’ approaches, i.e., soap bubbles or DNA computing, the ability of the optical oracle to solve large NP problems is limited by scaling of the physical resources required, including the overall length of the optical fibers needed to encode the network and the light intensity required to overcome absorption losses or pulse width broadening due to dispersion. For example, if a 30node graph is constructed as an optical oracle fiber network using the delay assignments in Equation (2) and is interrogated with 1ps optical pulses, its implementation would require a minimum fiber length of approximately 100 km and a maximum fiber length of approximately 200 km. Although such lengths may require infiber optical signal amplification to compensate for the losses, this approach is widely used in telecom networks and is within reach of current fiber technology. Dispersioninduced pulse broadening also can be overcome by choosing a center wavelength for the probe pulse that is close to the zero dispersion point of the fiber and using dispersion compensation elements.
The optical oracle relies on short pulses that propagate with the speed of light and the massive parallelism of fiber networks resulting from multiple branching of the pulses. This structure enables a fast and reliable pronouncement on the existence of a Hamiltonian path. For comparison, a bruteforce search on a conventional computer would require up to N! attempts. Even with smart algorithms such as dynamic programming, the conventional computers would require approximately 1/8·N^{2}2^{N} operations (additions and comparisons).^{20,21} For computers with a clock period τ, this process will require at least τ·1/8·N^{2}2^{N} s to perform, which indicates that our approach is Nτ/8Δt times faster than dynamic programming algorithms. With a pulse duration of 1 ps, a graph with 30 nodes could be solved approximately 375 times faster than with a 10GHz clock rate computer. We note that the optical oracle loses to probabilistic Monte Carlo algorithms^{21} that can solve the Hamiltonian path problem with a certain degree of uncertainty in time O(1.657^{N}). However, our approach completely excludes false predictions.
Practical applications of the Hamiltonian path oracle could include secure communications in which a scrambled binary signal sequence (or key) is encoded as a sequence of graphs, each of which represents either ‘1’ or ‘0’ bits in the binary signal depending on whether they support the Hamiltonian path. For a graph of 30 nodes, the Hamiltonian path oracle pronouncement with dynamic programming algorithms would require approximately 12 s on a 10GHz clock rate electronic computer, whereas the optical oracle could accomplish this task in a brisk 32 ms. Although the network will be multifarious, it could be easily reconfigured using optomechanical switches, thus allowing the interrogation of hundreds of networks within a second. Therefore, on a reconfigurable oracle, the scrambled sequence (or key) may be unscrambled in a time proportional to the number of bits in the sequence and the time needed to reconfigure the network and verify the existence of the Hamiltonian path (ms), whereas if performed by bruteforce computing, it may require a prohibitive amount of time.
Conclusions
In conclusion, we have provided an experimental demonstration of how a fiber network can be used to solve a wellknown NPcomplete problem. Although we do not suggest that existing global or local optical fiber networks can realistically be deployed for computing applications, we argue that in the future, highly reconfigurable optical fiber networks should not be overlooked as a powerful computing and decisionmaking hardware platform. Moreover, our strategy also can be implemented on a silicon photonics platform, and in principle, could be deployed on plasmonic waveguide networks with femtosecond lasers by exploiting the slow dispersion of plasmon polariton pulses.^{22} This approach would allow for compact, highly integrated solutions and the development of multiple network parallel architectures similar to the multicore structure of conventional processors.
Author contributions
JGA, NIZ, CS and KW generated the original idea and designed the experiment, and KW built the oracle and gathered experimental data. The manuscript was written by KW, NIZ and CS, and PPS contributed to the interpretation and analysis of the results and editing of the manuscript. All of the authors contributed to the discussion of results. NIZ supervised the work.
References
Karp RM . Reducibility among combinatorial problems. In: 50 Years of Integer Programming 1958–2008. Chapter 8. Berlin/Heidelberg: Springer; 2010; 219–241.
Cook SA . The complexity of theoremproving procedures. In: Proceedings of the Third Annual ACM Symposium on Theory of Computing. Shaker Heights, OH: ACM; 1971; 151–158 .
Dorigo M, Gambardella LM . Ant colony system: a cooperative learning approach to the traveling salesman problem. IEEE Trans Evol Comput 1997; 1: 53–66.
Ouyang Q, Kaplan PD, Liu S, Libchaber A . DNA solution of the maximal clique problem. Science 1997; 278: 446–449.
Aaronson S . NPcomplete problems and physical reality. SIGACT News 2005; 36: 30–52.
Kieu T . Quantum algorithm for Hilbert’s tenth problem. Int J Theor Phys 2003; 42: 1461–1478.
O’Brien JL . Optical quantum computing. Science 2007; 318: 1567–1570.
Adleman LM . Molecular computation of solutions to combinatorial problems. Science 1994; 266: 1021–1024.
Ezziane Z . DNA computing: applications and challenges. Nanotechnology 2006; 17: R27.
Liu Q, Wang L, Frutos AG, Condon AE, Corn RM et al. DNA computing on surfaces. Nature 2000; 403: 175–179.
Caulfield HJ, Dolev S . Why future supercomputing requires optics. Nat Photon 2010; 4: 261–263.
Oltean M . Solving the Hamiltonian path problem with a lightbased computer. Nat Comput 2008; 7: 57–70.
Shaked NT, Messika S, Dolev S, Rosen J . Optical solution for bounded NPcomplete problems. Appl Opt 2007; 46: 711–724.
Woods D, Naughton TJ . Optical computing: photonic neural networks. Nat Phys 2012; 8: 257–259.
Haist T, Osten W . An optical solution for the traveling salesman problem. Opt Express 2007; 15: 10473–10482.
Sartakhti JS, Jalili S, Rudi AG . A new lightbased solution to the Hamiltonian path problem. Future Gen Comput Syst 2013; 29: 520–527.
Dolev S, Fitoussi H . Masking traveling beams: optical solutions for NPcomplete problems, trading space for time. Theor Comput Sci 2010; 411: 837–853.
Goliaei S, Jalili S, Salimi J . Lightbased solution for the dominating set problem. Appl Opt 2012; 51: 6979–6983.
Oltean M . A lightbased device for solving the Hamiltonian path problem. In: Unconventional Computation. Chapter 18. Berlin/Heidelberg: Springer; 2006; 217–227.
Held M, Karp R . A dynamic programming approach to sequencing problems. J Soc Ind Appl Math 1962; 10: 196–210.
Bjorklund A . Determinant sums for undirected Hamiltonicity. Proceedings of the 2010 IEEE 51st Annual Symposium on Foundations of Computer Science; 23–25 October 2010; Las Vegas, NV, USA. IEEE Computer Society: Washington, DC, USA, pp 173–182.
Sámson ZL, Horak P, MacDonald KF, Zheludev NI . Femtosecond surface plasmon pulse propagation. Opt Lett 2011; 36: 250–252.
Acknowledgements
The authors are grateful to Pawel Sobocinski for critical reading of the manuscript and advice on terminology. This work was supported by the Singapore Ministry of Education Academic Research Fund Tier 3 (Grant No. MOE2011T31005), the Singapore Agency for Science, Technology and Research (A*STAR, SERC Project No. 1223600007), and EPSRC (UK) via the Programme on Nanostructured Photonic Metamaterials.
Author information
Authors and Affiliations
Corresponding author
Additional information
Note: Supplementary information for this article can be found on the Light: Science & Applications' website .
Supplementary information
Rights and permissions
This work is licensed under a Creative Commons AttributionNonCommercialShare Alike 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/byncsa/3.0/
About this article
Cite this article
Wu, K., García de Abajo, J., Soci, C. et al. An optical fiber network oracle for NPcomplete problems. Light Sci Appl 3, e147 (2014). https://doi.org/10.1038/lsa.2014.28
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1038/lsa.2014.28
Keywords
This article is cited by

Quantum algorithm and experimental demonstration for the subset sum problem
Science China Information Sciences (2022)

Antiferromagnetic spatial photonic Ising machine through optoelectronic correlation computing
Communications Physics (2021)

Heuristic recurrent algorithms for photonic Ising machines
Nature Communications (2020)

AllOptical Reinforcement Learning In Solitonic XJunctions
Scientific Reports (2018)

Intrinsic optimization using stochastic nanomagnets
Scientific Reports (2017)