public int LinearSearch()
        {
            var strings  = _strings;
            var segments = _segments;

            var destination = 0;

            for (var i = 0; i < strings.Length; i++)
            {
                destination = _linearSearch.GetDestination(strings[i], segments[i]);
            }

            return(destination);
        }
        public int Dictionary()
        {
            var strings  = _strings;
            var segments = _segments;

            var destination = 0;

            for (var i = 0; i < strings.Length; i++)
            {
                destination = _dictionary.GetDestination(strings[i], segments[i]);
            }

            return(destination);
        }
        public int VectorTrie()
        {
            var strings  = _strings;
            var segments = _segments;

            var destination = 0;

            for (var i = 0; i < strings.Length; i++)
            {
                destination = _vectorTrie.GetDestination(strings[i], segments[i]);
            }

            return(destination);
        }
Ejemplo n.º 4
0
        public int Implementation()
        {
            var strings  = _strings;
            var segments = _segments;

            var destination = 0;

            for (var i = 0; i < strings.Length; i++)
            {
                destination = _table.GetDestination(strings[i], segments[i]);
            }

            return(destination);
        }