View full-text article in PMC Sensors (Basel). 2016 Feb 26;16(3):297. doi: 10.3390/s16030297 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2016 by the authors; licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons by Attribution (CC-BY) license (http://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm 1 OVAR routing algorithm. 1:procedure ForwardPacket(Ri, P) 2: if forwarding timer expired then 3: F(Ri)=∅ 4: L(Ri)={nk|1≤k≤c} 5: G(L(Ri))=NeighGraphL(Ri),Table(Ri) 6: F(Ri)=ForwardingSetSelectG(L(Ri),Φ* 7: for j=1 to r do 8: Calculate EEPA(F,j) 9: jmax=argmaxjEEPA(F,j) 10: for all j>jmax do 11: F(Ri)=F(Ri)−nj 12: P.ForwardingList←F(Ri) 13: ForwardP 14: else 15: DropP 16: endif 17:endprocedure