The Golden State Warriors acquired center Ralph Sampson and guard Steve Harris from the Houston Rockets last night for center Joe Barry Carroll and guard Eric Floyd.

Sampson, 7 feet 4, is averaging 15.9 points and nine rebounds. He has blocked 33 shots. Earlier yesterday, he had 20 points in a nationally televised game against the Chicago Bulls.

Last season, he missed 39 regular-season games with various injuries. He was the first player selected in the 1983 draft. He had starred at the University of Virginia.

He moved to the forward position in 1984-85 after the Rockets drafted 7-foot Akeem Olajuwon.

They were known as the "Twin Towers" and in 1986 helped the Rockets to the NBA finals, which they lost to the Boston Celtics in six games.

Floyd, who played college ball at Georgetown, was leading the Warriors with a 21.9-point average before tonight's 127-93 loss in Salt Lake City. He was tops in assists at 10.2 per game.

"It's just part of the business," he said. "You have to move on. The Warriors got off to a bad start and just wanted to go in a new direction."

The New Jersey Nets drafted him in the first round, 13th overall, in 1982 and traded him to the Warriors Feb. 6, 1983. He has started 264 straight games and played in 305 straight games. He was second in the league in assists last year with a 10.3 game average. His 848 total assists broke the club record held for 21 years by Guy Rodgers.

Carroll scored seven points and Floyd eight last night in the loss to the Jazz.

With Carroll and Floyd, the Warriors made the playoffs only once, reaching the Western Conference semifinals last year.

While Carroll played poorly in the playoffs, Floyd scored a career-high 51 points in Game 4 of the conference semifinals against the Los Angeles Lakers, setting four NBA playoff records, including most points in a quarter, 29, most points in a half, 39, most field goals in one quarter, 12, and in a half, 15.

Carroll, one of the least popular Warriors, was all-America at Purdue before being selected by the Warriors in the first round of the 1980 NBA draft. He entered this season with a 20.5 point average.

He is averaged 16.2 points this season, third best on the Warriors. He was first in blocking shots with 117 and second in rebounding with 5.6 a game. He is four inches shorter than Sampson.

Steve Harris, 6-5, is averaging 5.9 points. He had gotten into only 14 games.

"We have made a decison to make a change in the basic structure of the Golden State Warriors," said Don Nelson, the team's executive vice president. "We are not satisfied with the direction of our team."

The Rockets' president, Ray Patterson, said: "I think at the end of last year, it was pretty well defined that we needed help at the shooting guard, which we got {earlier} in Purvis Short and World B. Free.

"And we also needed help at point-guard leadership on the court, someone that could go one on one. I want to compliment Allen Leavell on his play to date, and this will not diminish his role with the Rockets."

Before last night's game, the Warriors said that guard Chris Mullin had entered an alcohol rehabilitation program and will be out of basketball indefinitely. He averages 17.6 points.

"He has admitted to excessive consumption of beer over a period of time," a team spokesman said.