String searching algorithms in Java

前端 未结 5 2064
不知归路
不知归路 2021-01-01 07:29

I am doing string matching with big amount of data.

EDIT: I am matching words contained in a big list with some ontology text files. I take each file from ontology,

5条回答
  •  长发绾君心
    2021-01-01 08:04

    Why don't you use the indexOf method in java. As per the availability of memory, read the content. Do an indexOf and get all the lines you need. Load the next set of contents.

    If reading from file use nio streams.

    May be the idea is bad, But I belive in java. It will use the best algorithm.

    Better if you use regular expression.

提交回复
热议问题